(ns sekai.graphics.pixi.sprite
  (:require ["pixi.js" :as PIXI]
            [sekai.graphics.state.containers :as cont]))

(defn make-sprite! [url]
  (-> PIXI .-Sprite (.from url)))

(defn add-sprite! [sprite]
  (.addChild ^js/PIXI.Container (cont/world) sprite))
