Difference between revisions of "GSDP:GAM100/CProcessing"
From Inside
>D.hamilton m |
>D.hamilton m |
||
| Line 4: | Line 4: | ||
=== Structure === | === Structure === | ||
* [[Run()]] | * [[Run()]] | ||
| + | |||
| + | ===== Globals ===== | ||
* [[mouseX]] | * [[mouseX]] | ||
* [[mouseY]] | * [[mouseY]] | ||
| Line 17: | Line 19: | ||
* [[width]] | * [[width]] | ||
* [[height]] | * [[height]] | ||
| + | |||
=== Types === | === Types === | ||
| Line 25: | Line 28: | ||
* [[PSound]] | * [[PSound]] | ||
* [[PChannel]] | * [[PChannel]] | ||
| + | |||
| + | ===== Math ===== | ||
* [[vec2_t]] | * [[vec2_t]] | ||
* [[mat3_t]] | * [[mat3_t]] | ||
| + | |||
| + | ===== Callbacks ===== | ||
* [[KeyboardInputCallbackFunction]] | * [[KeyboardInputCallbackFunction]] | ||
* [[MouseInputCallbackFunction]] | * [[MouseInputCallbackFunction]] | ||
* [[MouseWheelCallbackFunction]] | * [[MouseWheelCallbackFunction]] | ||
| + | |||
=== Color === | === Color === | ||
| Line 39: | Line 47: | ||
* [[blue()]] | * [[blue()]] | ||
* [[lerpColor()]] | * [[lerpColor()]] | ||
| + | |||
=== Image === | === Image === | ||
| Line 46: | Line 55: | ||
* [[imageSize()]] | * [[imageSize()]] | ||
* [[imageMode()]] | * [[imageMode()]] | ||
| + | |||
=== Math === | === Math === | ||
| + | ===== Constants ===== | ||
* [[TAU]] | * [[TAU]] | ||
* [[TWO_PI]] | * [[TWO_PI]] | ||
| Line 53: | Line 64: | ||
* [[HALF_PI]] | * [[HALF_PI]] | ||
* [[QUARTER_PI]] | * [[QUARTER_PI]] | ||
| + | ===== Utility ===== | ||
* [[constrain_f()]] | * [[constrain_f()]] | ||
* [[constrain_i()]] | * [[constrain_i()]] | ||
| Line 64: | Line 76: | ||
* [[degrees()]] | * [[degrees()]] | ||
* [[radians()]] | * [[radians()]] | ||
| − | + | ||
| + | ===== Matrix ===== | ||
* [[mat3()]] | * [[mat3()]] | ||
* [[mat3_identity()]] | * [[mat3_identity()]] | ||
| Line 77: | Line 90: | ||
* [[mat3_concat()]] | * [[mat3_concat()]] | ||
* [[mat3_mult_vec2()]] | * [[mat3_mult_vec2()]] | ||
| + | ===== Vector ===== | ||
| + | * [[vec2()]] | ||
* [[vec2_zero()]] | * [[vec2_zero()]] | ||
* [[vec2_set()]] | * [[vec2_set()]] | ||
| Line 89: | Line 104: | ||
* [[vec2_cross()]] | * [[vec2_cross()]] | ||
* [[vec2_angle()]] | * [[vec2_angle()]] | ||
| + | |||
=== Random === | === Random === | ||
| Line 98: | Line 114: | ||
* [[randomGaussian()]] | * [[randomGaussian()]] | ||
* [[noise()]] | * [[noise()]] | ||
| + | |||
=== Setting === | === Setting === | ||
| Line 113: | Line 130: | ||
* [[cursor()]] | * [[cursor()]] | ||
* [[noCursor()]] | * [[noCursor()]] | ||
| + | |||
=== Shape === | === Shape === | ||
| Line 126: | Line 144: | ||
* [[vertex()]] | * [[vertex()]] | ||
* [[endShape()]] | * [[endShape()]] | ||
| + | ===== Modes ===== | ||
* [[rectMode()]] | * [[rectMode()]] | ||
* [[ellipseMode()]] | * [[ellipseMode()]] | ||
| Line 148: | Line 167: | ||
* [[setPan()]] | * [[setPan()]] | ||
* [[getPan()]] | * [[getPan()]] | ||
| + | |||
=== Text === | === Text === | ||
Revision as of 11:48, 12 July 2018
Reference
Structure
Globals
- mouseX
- mouseY
- pmouseX
- pmouseY
- worldMouseX
- worldMouseY
- frameCount
- displayWidth
- displayHeight
- windowWidth
- windowHeight
- width
- height
Types
Math
Callbacks
Color
Image
Math
Constants
Utility
- constrain_f()
- constrain_i()
- dist_f()
- dist_i()
- lerp_f()
- lerp_i()
- mag()
- map()
- sq()
- degrees()
- radians()
Matrix
- mat3()
- mat3_identity()
- mat3_set()
- mat3_from_vector()
- mat3_scale()
- mat3_translate()
- mat3_rotate()
- mat3_rotate_rad()
- mat3_transpose()
- mat3_inverse()
- mat3_concat()
- mat3_mult_vec2()
Vector
- vec2()
- vec2_zero()
- vec2_set()
- vec2_neg()
- vec2_add()
- vec2_sub()
- vec2_norm()
- vec2_scale()
- vec2_length()
- vec2_distance()
- vec2_dot()
- vec2_cross()
- vec2_angle()
Random
Setting
- background()
- backgroundColor()
- fill()
- fillColor()
- noFill()
- stroke()
- strokeColor()
- noStroke()
- strokeWeight()
- size()
- fullscreen()
- cursor()
- noCursor()
Shape
- rect()
- ellipse()
- circle()
- line()
- point()
- triangle()
- quad()
- roundedRect()
- beginShape()
- vertex()
- endShape()
Modes
Sound
- createSound()
- sound()
- soundChannel()
- createChannel()
- stop()
- setPaused()
- getPaused()
- setVolume()
- getVolume()
- setPitch()
- getPitch()
- setFade()
- clearFade()
- setReverb()
- getReverb()
- setPan()
- getPan()