Quick Jump: ShapesComplex ShapesColorsTextTransformsEnvironmentMouseKeyboardMathTrigDate/TimeDebuggingJavaScript 

ProcessingJS

Colors

See also: colorModeredgreenbluealphahuesaturationbrightness

Text

See also: textWidthtextAscenttextDescenttextLeadingtextAlign

Transforms

See also: pushMatrix/popMatrixresetMatrixprintMatrix

Environment

See also: Program.assertEqualProgram.restartframeRate(fps) frameCountloop / noLoop

Mouse

Keyboard

  • key 
    Number representing which key is pressed
  • keyCode 
    Represents when a special key is pressed
  • keyIsPressed 
    True if a key is being pressed, false otherwise

Math

  • round(num) 
    Return nearest integer
  • ceil(num) 
    Return nearest integer of greater/equal value
  • floor(num) 
    Return nearest integer of lesser/equal value
  • PVector(x, y) 
    An object that describes a 2-dimensional vector

See also: magexpmapnormlerpnoisenoiseDetailRandom.nextGaussian

Trigonometry

See also: acosasinatanatan2radiansdegreesangleMode

Date & Time

  • millis() 
    Milliseconds elapsed since program start

Debugging

JavaScript

Our documentation does not cover the many ways to use JavaScript. Learn more at:

This reference is based on ProcessingJS reference and is licensed under the CC BY-NC-SA 2.0 license.

相关文章:

  • 2021-03-31
  • 2021-07-08
  • 2022-12-23
  • 2021-07-27
  • 2021-10-23
  • 2022-01-16
  • 2021-05-06
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-04-27
  • 2021-06-05
  • 2021-06-20
  • 2021-08-04
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案