sim

package
v0.0.0-...-80186e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AttractionPrescaler = 0.0011
View Source
const AttractionScaler = 0.015
View Source
const CollisionEnabled = false
View Source
const Friction = 0.88
View Source
const Partcount = 12 * 60
View Source
const Radius = 8
View Source
const Species = 12
View Source
const Threads = 12

Variables

This section is empty.

Functions

This section is empty.

Types

type Particle

type Particle struct {
	Position pixel.Vec
	Color    pixel.RGBA
	// contains filtered or unexported fields
}

type Sim

type Sim struct {
	Parts []*Particle
	// contains filtered or unexported fields
}

func Init

func Init(width, height float64) *Sim

func (*Sim) Step

func (sim *Sim) Step()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL