16 lines
335 B
CoffeeScript
16 lines
335 B
CoffeeScript
|
# PolyTree, intended to be loaded as a module
|
||
|
|
||
|
import {p5, p5loaded} from './lib/loadp5.js'
|
||
|
|
||
|
sketch = (p) ->
|
||
|
p.setup = =>
|
||
|
p.createCanvas window.innerWidth, 575, p.WEBGL
|
||
|
p.background 224
|
||
|
p.ellipse 0, 0, 100, 50
|
||
|
p.ellipse p.width/4, -p.height/4, 50, 100
|
||
|
|
||
|
show = () ->
|
||
|
P5 = new p5 sketch
|
||
|
|
||
|
p5loaded.then show
|