processing

package
v0.0.0-...-853b2b0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

constAndVarHeader.go

Index

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 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()

MOUSE:

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 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 RIGHT string
View Source
var Setup func()
View Source
var TWO_PI float64
View Source
var Width int
View Source
var WinMouseX int
View Source
var WinMouseY int

Functions

func Alpha

func Alpha(color *js.Object) int

func Arc

func Arc(a, b, c, d, start, stop interface{}, mode string)

2D PRIMITIVES:

func Background

func Background(values ...interface{})

func Blue

func Blue(color *js.Object) int

func Brightness

func Brightness(color *js.Object) int

func Clear

func Clear()

func Color

func Color(params ...interface{}) *js.Object

func ColorMode

func ColorMode(mode string, maxValues ...int)

func CreateCanvas

func CreateCanvas(width, height int)

func Ellipse

func Ellipse(x, y, w interface{}, h ...interface{})

func Fill

func Fill(firstValue interface{}, extraValues ...float64)

func Green

func Green(color *js.Object) int

func Hue

func Hue(color *js.Object) int

func LaunchApp

func LaunchApp()

func LerpColor

func LerpColor(from interface{}, to interface{}, amt float64) *js.Object

func Lightness

func Lightness(color *js.Object) int

func Line

func Line(x1, y1, x2, y2 interface{})

func NoFill

func NoFill()

func NoStroke

func NoStroke()

func Point

func Point(x, y interface{})

func Quad

func Quad(x1, y1, x2, y2, x3, y3, x4, y4 interface{})

func Rect

func Rect(x, y, w, h interface{}, extraParameters ...interface{})

func Red

func Red(color *js.Object) int

func Saturation

func Saturation(color *js.Object) int

func Stroke

func Stroke(firstValue interface{}, extraValues ...int)

func StrokeWeight

func StrokeWeight(weight int)

func Triangle

func Triangle(x1, y1, x2, y2, x3, y3 interface{})

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func (*Event) Delta

func (event *Event) Delta() float64

type PVector

type PVector struct {
	X float64
	Y float64
	Z float64
	// contains filtered or unexported fields
}

func CreateVector

func CreateVector(cord ...float64) *PVector

func Random2D

func Random2D() *PVector

func Random3D

func Random3D() *PVector

func (*PVector) Add

func (v *PVector) Add(x interface{}, other ...interface{}) *PVector

func (*PVector) Copy

func (v *PVector) Copy() *PVector

func (*PVector) Cross

func (v *PVector) Cross(v2 *PVector) *PVector

func (*PVector) Dist

func (v *PVector) Dist(v2 *PVector) float64

func (*PVector) Div

func (v *PVector) Div(val float64) *PVector

func (*PVector) Dot

func (v *PVector) Dot(v2 *PVector) float64

func (*PVector) Mag

func (v *PVector) Mag() float64

func (*PVector) MagSq

func (v *PVector) MagSq() float64

func (*PVector) Mult

func (v *PVector) Mult(val float64) *PVector

func (*PVector) Normalize

func (v *PVector) Normalize() *PVector

func (*PVector) Set

func (v *PVector) Set(cord ...float64) *PVector

func (*PVector) Sub

func (v *PVector) Sub(x interface{}, other ...interface{}) *PVector

func (*PVector) ToString

func (v *PVector) ToString() string

Jump to

Keyboard shortcuts

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