Documentation
¶
Rendered for js/wasm
Index ¶
- Variables
- func FireworksExample(dt, width, height float64)
- func ParticlesExample(dt, width, height float64)
- func PatternExample(dt, width, height float64)
- func ProvideContext(cvs *wasmdraw.CanvasElement, c *ctx2d.Context)
- func RaytracedExample(dt, width, height float64)
- func SnowExample(dt, width, height float64)
- func TriangleExample(dt, width, height float64)
- type Firework
- type Snowflake
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Examples = []func(float64, float64, float64){TriangleExample, SnowExample, FireworksExample, PatternExample, ParticlesExample, RaytracedExample} ExampleNames = []string{"Triangle", "Snow", "Fireworks", "Pattern", "Particles", "Raytraced Solar System"} )
Functions ¶
func FireworksExample ¶
func FireworksExample(dt, width, height float64)
func ParticlesExample ¶
func ParticlesExample(dt, width, height float64)
func PatternExample ¶
func PatternExample(dt, width, height float64)
func ProvideContext ¶
func ProvideContext(cvs *wasmdraw.CanvasElement, c *ctx2d.Context)
func RaytracedExample ¶
func RaytracedExample(dt, width, height float64)
RaytracedExample renders the old ray-sphere scene through an allocation-free Canvas 2D pixel pipeline.
func SnowExample ¶
func SnowExample(dt, width, height float64)
func TriangleExample ¶
func TriangleExample(dt, width, height float64)
Types ¶
type Firework ¶
func (*Firework) UpdateAndDraw ¶
Click to show internal directories.
Click to hide internal directories.