To the extent possible under law, Tomas Mikula has waived all copyright and related or neighboring rights to this work.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CanvasTexture exposing (canvasTexture) | |
-- imports are weird for Native modules | |
-- You import them as you would normal modules | |
-- but you can't alias them nor expose stuff from them | |
import Task exposing (Task) | |
import WebGL exposing (Error, Texture) | |
import Native.CanvasTexture | |
-- this will be our function which returns a number plus one |