Documentation ¶
Index ¶
- Variables
- func Alpha(color *js.Object) int
- func Arc(a, b, c, d, start, stop interface{}, mode string)
- func Background(values ...interface{})
- func Blue(color *js.Object) int
- func Brightness(color *js.Object) int
- func Clear()
- func Color(params ...interface{}) *js.Object
- func ColorMode(mode string, maxValues ...int)
- func CreateCanvas(width, height int)
- func Ellipse(x, y, w interface{}, h ...interface{})
- func Fill(firstValue interface{}, extraValues ...float64)
- func Green(color *js.Object) int
- func Hue(color *js.Object) int
- func LaunchApp()
- func LerpColor(from interface{}, to interface{}, amt float64) *js.Object
- func Lightness(color *js.Object) int
- func Line(x1, y1, x2, y2 interface{})
- func NoFill()
- func NoStroke()
- func Point(x, y interface{})
- func Quad(x1, y1, x2, y2, x3, y3, x4, y4 interface{})
- func Rect(x, y, w, h interface{}, extraParameters ...interface{})
- func Red(color *js.Object) int
- func Saturation(color *js.Object) int
- func Stroke(firstValue interface{}, extraValues ...int)
- func StrokeWeight(weight int)
- func Triangle(x1, y1, x2, y2, x3, y3 interface{})
- type Event
- type PVector
- func (v *PVector) Add(x interface{}, other ...interface{}) *PVector
- func (v *PVector) Copy() *PVector
- func (v *PVector) Cross(v2 *PVector) *PVector
- func (v *PVector) Dist(v2 *PVector) float64
- func (v *PVector) Div(val float64) *PVector
- func (v *PVector) Dot(v2 *PVector) float64
- func (v *PVector) Mag() float64
- func (v *PVector) MagSq() float64
- func (v *PVector) Mult(val float64) *PVector
- func (v *PVector) Normalize() *PVector
- func (v *PVector) Set(cord ...float64) *PVector
- func (v *PVector) Sub(x interface{}, other ...interface{}) *PVector
- func (v *PVector) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var CENTER string
View Source
var CHORD string
View Source
var Draw func()
View Source
var HALF_PI float64
Constants in p5Js: (In go are only variables)
View Source
var HSB string
View Source
var Height int
View Source
var LEFT string
View Source
var MouseButton string
View Source
var MouseClicked func()
View Source
var MouseDragged func()
View Source
var MouseIsPressed bool
View Source
var MouseMoved func()
View Source
var MousePressed func()
View Source
var MouseReleased func()
View Source
var MouseWheel func(event Event)
View Source
var MouseX int
Cast of different variables
View Source
var MouseY int
View Source
var OPEN string //Is a String
Modes for any functions:
View Source
var PI float64
View Source
var PIE string
View Source
var PmouseX int
View Source
var PmouseY int
View Source
var PwinMouseX int
View Source
var PwinMouseY int
View Source
var QUARTER_PI float64
View Source
var RGB string
View Source
var RIGHT string
View Source
var Setup func()
View Source
var TAU float64
View Source
var TWO_PI float64
View Source
var Width int
View Source
var WinMouseX int
View Source
var WinMouseY int
Functions ¶
func Background ¶
func Background(values ...interface{})
func Brightness ¶
func CreateCanvas ¶
func CreateCanvas(width, height int)
func Saturation ¶
func StrokeWeight ¶
func StrokeWeight(weight int)
Types ¶
type PVector ¶
func CreateVector ¶
Click to show internal directories.
Click to hide internal directories.