-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch-index.json
More file actions
1 lines (1 loc) · 58.4 KB
/
Copy pathsearch-index.json
File metadata and controls
1 lines (1 loc) · 58.4 KB
1
[{"slug": "BufferedReader_class", "name": "BufferedReader", "cat": "Data", "subcat": "Composite", "desc": "Reads text from a file line by line. Create with createReader(). Close when done.", "url": "/reference/BufferedReader_class.html"}, {"slug": "HALF_PI", "name": "HALF_PI", "cat": "Constants", "subcat": "", "desc": "HALF_PI is a mathematical constant with the value 1.57079632679489661923.", "url": "/reference/HALF_PI.html"}, {"slug": "HashMap_class", "name": "HashMap", "cat": "Data", "subcat": "Composite", "desc": "A templated key-value map. In C++ Mode, std::map and std::unordered_map from the standard library are often more idiomat", "url": "/reference/HashMap_class.html"}, {"slug": "PFont_class", "name": "PFont", "cat": "Data", "subcat": "Composite", "desc": "Datatype for storing fonts. Load with loadFont() or create with createFont().", "url": "/reference/PFont_class.html"}, {"slug": "PGraphics_class", "name": "PGraphics", "cat": "Data", "subcat": "Composite", "desc": "An off-screen graphics buffer. Create with createGraphics(). Draw into it with beginDraw()/endDraw(), then display with ", "url": "/reference/PGraphics_class.html"}, {"slug": "PI", "name": "PI", "cat": "Constants", "subcat": "", "desc": "PI is a mathematical constant with the value 3.14159265358979323846.", "url": "/reference/PI.html"}, {"slug": "PImage_class", "name": "PImage", "cat": "Data", "subcat": "Composite", "desc": "Datatype for storing and manipulating images. Load with loadImage() or create with createImage().", "url": "/reference/PImage_class.html"}, {"slug": "PShader_class", "name": "PShader", "cat": "Data", "subcat": "Composite", "desc": "Datatype for GLSL shaders. Load with loadShader() and apply with shader().", "url": "/reference/PShader_class.html"}, {"slug": "PShape_class", "name": "PShape", "cat": "Data", "subcat": "Composite", "desc": "Datatype for storing shapes. Load with loadShape() or build programmatically with createShape().", "url": "/reference/PShape_class.html"}, {"slug": "PVector", "name": "PVector", "cat": "Data", "subcat": "Composite", "desc": "A class to describe a two or three dimensional vector. Commonly used to represent position, velocity, or direction.", "url": "/reference/PVector.html"}, {"slug": "PrintWriter_class", "name": "PrintWriter", "cat": "Data", "subcat": "Composite", "desc": "Writes text to a file. Create with createWriter(). Always call close() or flush() when done.", "url": "/reference/PrintWriter_class.html"}, {"slug": "QUARTER_PI", "name": "QUARTER_PI", "cat": "Constants", "subcat": "", "desc": "QUARTER_PI is a mathematical constant with the value 0.7853982.", "url": "/reference/QUARTER_PI.html"}, {"slug": "TAU", "name": "TAU", "cat": "Constants", "subcat": "", "desc": "TAU is an alias for TWO_PI with value 6.28318530717958647693.", "url": "/reference/TAU.html"}, {"slug": "TWO_PI", "name": "TWO_PI", "cat": "Constants", "subcat": "", "desc": "TWO_PI is a mathematical constant with the value 6.28318530717958647693.", "url": "/reference/TWO_PI.html"}, {"slug": "TableRow_class", "name": "TableRow", "cat": "Data", "subcat": "Composite", "desc": "Represents a single row in a Table. Access values by column index or name.", "url": "/reference/TableRow_class.html"}, {"slug": "Table_class", "name": "Table", "cat": "Data", "subcat": "Composite", "desc": "Stores data in rows and columns like a spreadsheet. Load with loadTable(). Column names are set by the header row.", "url": "/reference/Table_class.html"}, {"slug": "XML_class", "name": "XML", "cat": "Data", "subcat": "Composite", "desc": "Represents an XML element. Load with loadXML() or parseXML(). Access children and attributes by name.", "url": "/reference/XML_class.html"}, {"slug": "abs", "name": "abs()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the absolute value (magnitude) of a number.", "url": "/reference/abs.html"}, {"slug": "acos", "name": "acos()", "cat": "Math", "subcat": "Trigonometry", "desc": "The inverse of cos, returns the arc cosine of a value.", "url": "/reference/acos.html"}, {"slug": "alpha", "name": "alpha()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the alpha value from a color.", "url": "/reference/alpha.html"}, {"slug": "ambient", "name": "ambient()", "cat": "Lights_Camera", "subcat": "Material_Properties", "desc": "Sets the ambient reflectance for shapes. Used with lighting.", "url": "/reference/ambient.html"}, {"slug": "ambientLight", "name": "ambientLight()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Adds an ambient light. Ambient light has no position or direction.", "url": "/reference/ambientLight.html"}, {"slug": "append", "name": "append()", "cat": "Data", "subcat": "Array_Functions", "desc": "Expands a std::vector by one element and adds value to the end.", "url": "/reference/append.html"}, {"slug": "applyMatrix", "name": "applyMatrix()", "cat": "Transform", "subcat": "", "desc": "Multiplies the current matrix by the specified 4x4 matrix.", "url": "/reference/applyMatrix.html"}, {"slug": "arc", "name": "arc()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws an arc in the display window. Angles are given in radians.", "url": "/reference/arc.html"}, {"slug": "arrayCopy", "name": "arrayCopy()", "cat": "Data", "subcat": "Array_Functions", "desc": "Copies the contents of one vector into another.", "url": "/reference/arrayCopy.html"}, {"slug": "asin", "name": "asin()", "cat": "Math", "subcat": "Trigonometry", "desc": "The inverse of sin, returns the arc sine of a value.", "url": "/reference/asin.html"}, {"slug": "atan", "name": "atan()", "cat": "Math", "subcat": "Trigonometry", "desc": "The inverse of tan, returns the arc tangent of a value.", "url": "/reference/atan.html"}, {"slug": "atan2", "name": "atan2()", "cat": "Math", "subcat": "Trigonometry", "desc": "Calculates the angle formed by a point relative to the positive x-axis. More useful than atan for full-circle angles.", "url": "/reference/atan2.html"}, {"slug": "background", "name": "background()", "cat": "Color", "subcat": "Setting", "desc": "Sets the color used for the background of the Processing window. Called in draw() to clear the canvas each frame.", "url": "/reference/background.html"}, {"slug": "beginCamera", "name": "beginCamera()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Opens a section of code that can include shapes to be rendered into the camera-space. Must be paired with endCamera().", "url": "/reference/beginCamera.html"}, {"slug": "beginContour", "name": "beginContour()", "cat": "Shape", "subcat": "Vertex", "desc": "Use beginContour() and endContour() to cut out areas within a shape (like holes).", "url": "/reference/beginContour.html"}, {"slug": "beginShape", "name": "beginShape()", "cat": "Shape", "subcat": "Vertex", "desc": "Using beginShape() and endShape() allows creating complex forms. Optionally pass a shape kind.", "url": "/reference/beginShape.html"}, {"slug": "bezier", "name": "bezier()", "cat": "Shape", "subcat": "Curves", "desc": "Draws a cubic bezier curve on the screen.", "url": "/reference/bezier.html"}, {"slug": "bezierDetail", "name": "bezierDetail()", "cat": "Shape", "subcat": "Curves", "desc": "Sets the resolution at which bezier curves display. Default is 20.", "url": "/reference/bezierDetail.html"}, {"slug": "bezierPoint", "name": "bezierPoint()", "cat": "Shape", "subcat": "Curves", "desc": "Evaluates the bezier at parameter t, returning a point on the curve.", "url": "/reference/bezierPoint.html"}, {"slug": "bezierTangent", "name": "bezierTangent()", "cat": "Shape", "subcat": "Curves", "desc": "Calculates the tangent of a point on a bezier curve.", "url": "/reference/bezierTangent.html"}, {"slug": "bezierVertex", "name": "bezierVertex()", "cat": "Shape", "subcat": "Vertex", "desc": "Specifies vertex coordinates for bezier curves inside beginShape()/endShape().", "url": "/reference/bezierVertex.html"}, {"slug": "binary", "name": "binary()", "cat": "Data", "subcat": "String_Functions", "desc": "Converts an integer to a binary string representation (32 characters).", "url": "/reference/binary.html"}, {"slug": "blendMode", "name": "blendMode()", "cat": "Color", "subcat": "Setting", "desc": "Blends the pixels in the display window with the pixels underneath using a defined blend mode.", "url": "/reference/blendMode.html"}, {"slug": "blend_fn", "name": "blend()", "cat": "Image", "subcat": "Pixels", "desc": "Copies a region of pixels from one image into another with full alpha channel blending. Blend modes include BLEND, ADD, ", "url": "/reference/blend_fn.html"}, {"slug": "blue", "name": "blue()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the blue value from a color.", "url": "/reference/blue.html"}, {"slug": "box", "name": "box()", "cat": "Shape", "subcat": "3D_Primitives", "desc": "A box is an extruded rectangle. Use in P3D mode. A box with equal dimensions is a cube.", "url": "/reference/box.html"}, {"slug": "brightness", "name": "brightness()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the brightness value from a color (HSB mode).", "url": "/reference/brightness.html"}, {"slug": "camera", "name": "camera()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Sets the position of the camera by defining the eye position, center of the scene, and up direction.", "url": "/reference/camera.html"}, {"slug": "captureMouse", "name": "captureMouse()", "cat": "Environment", "subcat": "", "desc": "Locks the cursor to the window and enables raw mouse input, removing OS acceleration. Essential for FPS-style games. Use", "url": "/reference/captureMouse.html"}, {"slug": "ceil", "name": "ceil()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the closest integer that is greater than or equal to the value of the parameter.", "url": "/reference/ceil.html"}, {"slug": "circle", "name": "circle()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a circle to the screen. By default, the first two parameters set the location of the center, and the third sets th", "url": "/reference/circle.html"}, {"slug": "clear", "name": "clear()", "cat": "Color", "subcat": "Setting", "desc": "Clears the pixels within a buffer. Equivalent to background with 0 alpha.", "url": "/reference/clear.html"}, {"slug": "clip", "name": "clip()", "cat": "Rendering", "subcat": "Shaders", "desc": "Limits the rendering to a rectangular area. Only pixels inside the clip region will be drawn.", "url": "/reference/clip.html"}, {"slug": "colorMode", "name": "colorMode()", "cat": "Color", "subcat": "Setting", "desc": "Changes the way Processing interprets color data. Default is RGB with range 0-255.", "url": "/reference/colorMode.html"}, {"slug": "color_fn", "name": "color()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Creates colors for storing in variables. Respects the current colorMode.", "url": "/reference/color_fn.html"}, {"slug": "color_type", "name": "color", "cat": "Data", "subcat": "Primitive", "desc": "Datatype for storing color values. Internally a 32-bit packed ARGB integer. Created with the color() function. Compatibl", "url": "/reference/color_type.html"}, {"slug": "concat", "name": "concat()", "cat": "Data", "subcat": "Array_Functions", "desc": "Concatenates two std::vectors.", "url": "/reference/concat.html"}, {"slug": "constrain", "name": "constrain()", "cat": "Math", "subcat": "Calculation", "desc": "Constrains a value to not exceed a maximum and minimum value.", "url": "/reference/constrain.html"}, {"slug": "copy_fn", "name": "copy()", "cat": "Image", "subcat": "Pixels", "desc": "Copies a region of the display window to another location on the display window.", "url": "/reference/copy_fn.html"}, {"slug": "cos", "name": "cos()", "cat": "Math", "subcat": "Trigonometry", "desc": "Calculates the cosine of an angle in radians.", "url": "/reference/cos.html"}, {"slug": "createFont", "name": "createFont()", "cat": "Typography", "subcat": "Loading_and_Displaying", "desc": "Creates a PFont from a system font name and size.", "url": "/reference/createFont.html"}, {"slug": "createGraphics", "name": "createGraphics()", "cat": "Rendering", "subcat": "Shaders", "desc": "Creates an off-screen rendering surface (PGraphics). Draw into it using beginDraw()/endDraw(), then display with image()", "url": "/reference/createGraphics.html"}, {"slug": "createImage", "name": "createImage()", "cat": "Image", "subcat": "Loading_and_Displaying", "desc": "Creates a new PImage (the datatype for storing images) with the given width and height.", "url": "/reference/createImage.html"}, {"slug": "createInput", "name": "createInput()", "cat": "Input", "subcat": "Files", "desc": "Opens a file for binary reading. Returns a std::ifstream pointer.", "url": "/reference/createInput.html"}, {"slug": "createOutput", "name": "createOutput()", "cat": "Output", "subcat": "Files", "desc": "Opens a file for binary writing. Returns a std::ofstream pointer.", "url": "/reference/createOutput.html"}, {"slug": "createReader", "name": "createReader()", "cat": "Input", "subcat": "Files", "desc": "Creates a BufferedReader object for reading text from a file line by line.", "url": "/reference/createReader.html"}, {"slug": "createShape", "name": "createShape()", "cat": "Shape", "subcat": "Loading_and_Displaying", "desc": "Creates a new PShape object. Optionally pass a kind constant.", "url": "/reference/createShape.html"}, {"slug": "createWriter", "name": "createWriter()", "cat": "Output", "subcat": "Files", "desc": "Creates a PrintWriter object for writing text to a file.", "url": "/reference/createWriter.html"}, {"slug": "cursor", "name": "cursor()", "cat": "Environment", "subcat": "", "desc": "Sets the cursor to a predefined shape or restores the default cursor.", "url": "/reference/cursor.html"}, {"slug": "curve", "name": "curve()", "cat": "Shape", "subcat": "Curves", "desc": "Draws a curved line on the screen (Catmull-Rom spline).", "url": "/reference/curve.html"}, {"slug": "curveDetail", "name": "curveDetail()", "cat": "Shape", "subcat": "Curves", "desc": "Sets the resolution at which curves display. Default is 20.", "url": "/reference/curveDetail.html"}, {"slug": "curvePoint", "name": "curvePoint()", "cat": "Shape", "subcat": "Curves", "desc": "Evaluates the Catmull-Rom curve at parameter t.", "url": "/reference/curvePoint.html"}, {"slug": "curveTangent", "name": "curveTangent()", "cat": "Shape", "subcat": "Curves", "desc": "Calculates the tangent of a point on a Catmull-Rom curve.", "url": "/reference/curveTangent.html"}, {"slug": "curveTightness", "name": "curveTightness()", "cat": "Shape", "subcat": "Curves", "desc": "Modifies the quality of curves drawn with curve(). Default is 0.", "url": "/reference/curveTightness.html"}, {"slug": "curveVertex", "name": "curveVertex()", "cat": "Shape", "subcat": "Vertex", "desc": "Specifies vertex coordinates for curves inside beginShape()/endShape(). At least 4 points required.", "url": "/reference/curveVertex.html"}, {"slug": "day", "name": "day()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the current day as a value from 1 to 31.", "url": "/reference/day.html"}, {"slug": "degrees", "name": "degrees()", "cat": "Math", "subcat": "Trigonometry", "desc": "Converts a radian measurement to its corresponding value in degrees.", "url": "/reference/degrees.html"}, {"slug": "delay", "name": "delay()", "cat": "Structure", "subcat": "", "desc": "Halts the program for the specified number of milliseconds.", "url": "/reference/delay.html"}, {"slug": "deltaTime", "name": "deltaTime", "cat": "Environment", "subcat": "", "desc": "Seconds elapsed since the last frame. Useful for frame-rate-independent animation.", "url": "/reference/deltaTime.html"}, {"slug": "directionalLight", "name": "directionalLight()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Adds a directional light. Comes uniformly from one direction, like sunlight.", "url": "/reference/directionalLight.html"}, {"slug": "displayHeight", "name": "displayHeight", "cat": "Environment", "subcat": "", "desc": "System variable storing the full monitor height in pixels.", "url": "/reference/displayHeight.html"}, {"slug": "displayWidth", "name": "displayWidth", "cat": "Environment", "subcat": "", "desc": "System variable storing the full monitor width in pixels.", "url": "/reference/displayWidth.html"}, {"slug": "dist", "name": "dist()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the distance between two points. Supports 2D and 3D.", "url": "/reference/dist.html"}, {"slug": "draw", "name": "draw()", "cat": "Structure", "subcat": "", "desc": "Continuously executes the code inside its block until the program is stopped or noLoop() is called.", "url": "/reference/draw.html"}, {"slug": "ellipse", "name": "ellipse()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws an ellipse (oval) to the screen. The first two parameters set the location, and the third and fourth parameters se", "url": "/reference/ellipse.html"}, {"slug": "ellipseMode", "name": "ellipseMode()", "cat": "Shape", "subcat": "Attributes", "desc": "Modifies the location from which ellipses are drawn. Default is CENTER.", "url": "/reference/ellipseMode.html"}, {"slug": "emissive", "name": "emissive()", "cat": "Lights_Camera", "subcat": "Material_Properties", "desc": "Sets the emissive color of a shape. Emissive color appears to glow.", "url": "/reference/emissive.html"}, {"slug": "endCamera", "name": "endCamera()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Closes a camera definition started with beginCamera().", "url": "/reference/endCamera.html"}, {"slug": "endContour", "name": "endContour()", "cat": "Shape", "subcat": "Vertex", "desc": "The companion to beginContour().", "url": "/reference/endContour.html"}, {"slug": "endShape", "name": "endShape()", "cat": "Shape", "subcat": "Vertex", "desc": "The companion to beginShape(). Pass CLOSE to close the shape.", "url": "/reference/endShape.html"}, {"slug": "exit", "name": "exit()", "cat": "Structure", "subcat": "", "desc": "Quits the sketch. Internally calls exit_sketch().", "url": "/reference/exit.html"}, {"slug": "exp", "name": "exp()", "cat": "Math", "subcat": "Calculation", "desc": "Returns Euler's number e raised to the power of the parameter.", "url": "/reference/exp.html"}, {"slug": "expand", "name": "expand()", "cat": "Data", "subcat": "Array_Functions", "desc": "Increases the size of a std::vector. With no second argument, doubles the size.", "url": "/reference/expand.html"}, {"slug": "fill", "name": "fill()", "cat": "Color", "subcat": "Setting", "desc": "Sets the color used to fill shapes.", "url": "/reference/fill.html"}, {"slug": "filter", "name": "filter()", "cat": "Image", "subcat": "Pixels", "desc": "Applies a filter to the display. Available filters: GRAY, INVERT, THRESHOLD.", "url": "/reference/filter.html"}, {"slug": "floor", "name": "floor()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the closest integer that is less than or equal to the value of the parameter.", "url": "/reference/floor.html"}, {"slug": "focused", "name": "focused", "cat": "Environment", "subcat": "", "desc": "Confirms if the sketch window is focused, meaning it is active and will accept keyboard or mouse input. True when focuse", "url": "/reference/focused.html"}, {"slug": "frameCount", "name": "frameCount", "cat": "Environment", "subcat": "", "desc": "System variable storing the number of frames displayed since the sketch started.", "url": "/reference/frameCount.html"}, {"slug": "frameRate_fn", "name": "frameRate()", "cat": "Environment", "subcat": "", "desc": "Sets the target number of frames to display per second.", "url": "/reference/frameRate_fn.html"}, {"slug": "frameRate_var", "name": "_frameRate", "cat": "Environment", "subcat": "", "desc": "System variable storing the approximate current frame rate.", "url": "/reference/frameRate_var.html"}, {"slug": "frustum", "name": "frustum()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Sets a perspective matrix as defined by the parameters. An off-axis frustum.", "url": "/reference/frustum.html"}, {"slug": "fullScreen", "name": "fullScreen()", "cat": "Environment", "subcat": "", "desc": "Opens the sketch in fullscreen mode.", "url": "/reference/fullScreen.html"}, {"slug": "get_pixel", "name": "get()", "cat": "Image", "subcat": "Pixels", "desc": "Reads the color of any pixel or grabs a section of a PImage.", "url": "/reference/get_pixel.html"}, {"slug": "green", "name": "green()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the green value from a color.", "url": "/reference/green.html"}, {"slug": "height", "name": "height", "cat": "Environment", "subcat": "", "desc": "System variable storing the height of the display window as set by size().", "url": "/reference/height.html"}, {"slug": "hex", "name": "hex()", "cat": "Data", "subcat": "String_Functions", "desc": "Converts an integer to a hexadecimal string.", "url": "/reference/hex.html"}, {"slug": "hint", "name": "hint()", "cat": "Environment", "subcat": "", "desc": "Set hints for the renderer. Use ENABLE_DEPTH_TEST, DISABLE_DEPTH_TEST, ENABLE_DEPTH_SORT, etc.", "url": "/reference/hint.html"}, {"slug": "hour", "name": "hour()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the current hour as a value from 0 to 23.", "url": "/reference/hour.html"}, {"slug": "hue", "name": "hue()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the hue value from a color (HSB mode).", "url": "/reference/hue.html"}, {"slug": "image", "name": "image()", "cat": "Image", "subcat": "Loading_and_Displaying", "desc": "Displays an image at the given position. Optionally specify width and height.", "url": "/reference/image.html"}, {"slug": "imageMode", "name": "imageMode()", "cat": "Image", "subcat": "Loading_and_Displaying", "desc": "Modifies the location from which images are drawn. Default is CORNER.", "url": "/reference/imageMode.html"}, {"slug": "join", "name": "join()", "cat": "Data", "subcat": "String_Functions", "desc": "Combines a vector of strings into one string using a separator.", "url": "/reference/join.html"}, {"slug": "key", "name": "key", "cat": "Input", "subcat": "Keyboard", "desc": "The system variable key always contains the value of the most recently pressed key. For special keys, key == CODED and y", "url": "/reference/key.html"}, {"slug": "keyCode", "name": "keyCode", "cat": "Input", "subcat": "Keyboard", "desc": "Used to detect special keys: UP, DOWN, LEFT, RIGHT, ALT, CONTROL, SHIFT, etc. Only valid when key == CODED.", "url": "/reference/keyCode.html"}, {"slug": "keyPressed_fn", "name": "keyPressed()", "cat": "Input", "subcat": "Keyboard", "desc": "Called once every time a key is pressed.", "url": "/reference/keyPressed_fn.html"}, {"slug": "keyPressed_var", "name": "_keyPressed", "cat": "Input", "subcat": "Keyboard", "desc": "The boolean system variable keyPressed is true if any key is pressed.", "url": "/reference/keyPressed_var.html"}, {"slug": "keyReleased", "name": "keyReleased()", "cat": "Input", "subcat": "Keyboard", "desc": "Called once every time a key is released.", "url": "/reference/keyReleased.html"}, {"slug": "keyTyped", "name": "keyTyped()", "cat": "Input", "subcat": "Keyboard", "desc": "Called once every time a key is pressed, but action keys such as Ctrl, Shift, and Alt are ignored.", "url": "/reference/keyTyped.html"}, {"slug": "launch", "name": "launch()", "cat": "Input", "subcat": "Files", "desc": "Opens a file, URL, or application using the operating system's default handler.", "url": "/reference/launch.html"}, {"slug": "lerp", "name": "lerp()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates a number between two numbers at a specific increment. amt 0.0 returns a, amt 1.0 returns b.", "url": "/reference/lerp.html"}, {"slug": "lerpColor", "name": "lerpColor()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Calculates a color between two colors at a specific increment.", "url": "/reference/lerpColor.html"}, {"slug": "lightFalloff", "name": "lightFalloff()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Sets the falloff rates for point lights, spot lights, and ambient lights.", "url": "/reference/lightFalloff.html"}, {"slug": "lightSpecular", "name": "lightSpecular()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Sets the specular color for lights. Affects materials with specular component.", "url": "/reference/lightSpecular.html"}, {"slug": "lights", "name": "lights()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Sets the default ambient light, directional light, falloff, and specular values. Equivalent to calling ambientLight() an", "url": "/reference/lights.html"}, {"slug": "line", "name": "line()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a line between two points. Supports both 2D and 3D.", "url": "/reference/line.html"}, {"slug": "loadBytes", "name": "loadBytes()", "cat": "Input", "subcat": "Files", "desc": "Reads the contents of a file into a vector of bytes.", "url": "/reference/loadBytes.html"}, {"slug": "loadFont", "name": "loadFont()", "cat": "Typography", "subcat": "Loading_and_Displaying", "desc": "Loads a font from the sketch's data folder. Supports .ttf and .otf files.", "url": "/reference/loadFont.html"}, {"slug": "loadImage", "name": "loadImage()", "cat": "Image", "subcat": "Loading_and_Displaying", "desc": "Loads an image into a variable of type PImage. Supported formats: PNG, JPG, GIF, TGA. Images are loaded from the sketch'", "url": "/reference/loadImage.html"}, {"slug": "loadJSONArray", "name": "loadJSONArray()", "cat": "Input", "subcat": "Files", "desc": "Loads a JSON array file and returns a JSONValue.", "url": "/reference/loadJSONArray.html"}, {"slug": "loadJSONObject", "name": "loadJSONObject()", "cat": "Input", "subcat": "Files", "desc": "Loads a JSON file and returns a JSONValue object.", "url": "/reference/loadJSONObject.html"}, {"slug": "loadPixels", "name": "loadPixels()", "cat": "Image", "subcat": "Pixels", "desc": "Loads the pixel data for the display window into the pixels[] array.", "url": "/reference/loadPixels.html"}, {"slug": "loadShader", "name": "loadShader()", "cat": "Rendering", "subcat": "Shaders", "desc": "Loads a GLSL shader from a file. Pass the fragment shader path and optionally the vertex shader path.", "url": "/reference/loadShader.html"}, {"slug": "loadShape", "name": "loadShape()", "cat": "Shape", "subcat": "Loading_and_Displaying", "desc": "Loads geometry into a variable of type PShape. Supports SVG and OBJ files.", "url": "/reference/loadShape.html"}, {"slug": "loadStrings", "name": "loadStrings()", "cat": "Input", "subcat": "Files", "desc": "Reads the contents of a file and creates a vector of strings, one per line.", "url": "/reference/loadStrings.html"}, {"slug": "loadTable", "name": "loadTable()", "cat": "Input", "subcat": "Files", "desc": "Loads a CSV or TSV file into a Table object.", "url": "/reference/loadTable.html"}, {"slug": "loadXML", "name": "loadXML()", "cat": "Input", "subcat": "Files", "desc": "Loads an XML file and returns an XML object.", "url": "/reference/loadXML.html"}, {"slug": "log", "name": "log()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the natural logarithm (base e) of a number.", "url": "/reference/log.html"}, {"slug": "loop", "name": "loop()", "cat": "Structure", "subcat": "", "desc": "Causes Processing to continuously execute the code within draw().", "url": "/reference/loop.html"}, {"slug": "mag", "name": "mag()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the magnitude (length) of a vector. Supports 2D and 3D.", "url": "/reference/mag.html"}, {"slug": "map", "name": "map()", "cat": "Math", "subcat": "Calculation", "desc": "Re-maps a number from one range to another.", "url": "/reference/map.html"}, {"slug": "map_class", "name": "std::map", "cat": "Data", "subcat": "Composite", "desc": "A sorted key-value container from the C++ Standard Library. Available without any #include. In C++ Mode, std::map replac", "url": "/reference/map_class.html"}, {"slug": "mask_fn", "name": "mask()", "cat": "Image", "subcat": "Pixels", "desc": "Applies a mask to a PImage. The mask image is a grayscale image where white pixels are opaque and black pixels are trans", "url": "/reference/mask_fn.html"}, {"slug": "match", "name": "match()", "cat": "Data", "subcat": "String_Functions", "desc": "Uses a regular expression to match a string. Returns a vector of matches.", "url": "/reference/match.html"}, {"slug": "matchAll", "name": "matchAll()", "cat": "Data", "subcat": "String_Functions", "desc": "Uses a regular expression to find all matches in a string.", "url": "/reference/matchAll.html"}, {"slug": "max", "name": "max()", "cat": "Math", "subcat": "Calculation", "desc": "Determines the largest value in a sequence of numbers. Supports two or three arguments.", "url": "/reference/max.html"}, {"slug": "millis", "name": "millis()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the number of milliseconds since the sketch started.", "url": "/reference/millis.html"}, {"slug": "min", "name": "min()", "cat": "Math", "subcat": "Calculation", "desc": "Determines the smallest value in a sequence of numbers. Supports two or three arguments.", "url": "/reference/min.html"}, {"slug": "minute", "name": "minute()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the current minute as a value from 0 to 59.", "url": "/reference/minute.html"}, {"slug": "modelX", "name": "modelX()", "cat": "Transform", "subcat": "", "desc": "Returns the x-coordinate of a 3D point in model space after applying the current transformation matrix.", "url": "/reference/modelX.html"}, {"slug": "modelY", "name": "modelY()", "cat": "Transform", "subcat": "", "desc": "Returns the y-coordinate of a 3D point in model space after applying the current transformation matrix.", "url": "/reference/modelY.html"}, {"slug": "modelZ", "name": "modelZ()", "cat": "Transform", "subcat": "", "desc": "Returns the z-coordinate of a 3D point in model space after applying the current transformation matrix.", "url": "/reference/modelZ.html"}, {"slug": "month", "name": "month()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the current month as a value from 1 to 12.", "url": "/reference/month.html"}, {"slug": "mouseButton", "name": "mouseButton", "cat": "Input", "subcat": "Mouse", "desc": "When mousePressed is true, mouseButton holds which button is pressed: LEFT, RIGHT, or CENTER.", "url": "/reference/mouseButton.html"}, {"slug": "mouseClicked", "name": "mouseClicked()", "cat": "Input", "subcat": "Mouse", "desc": "Called after a mouse button is pressed and released.", "url": "/reference/mouseClicked.html"}, {"slug": "mouseDX", "name": "mouseDX", "cat": "Input", "subcat": "Mouse", "desc": "Accumulated horizontal mouse delta since the last frame. Updated on every raw cursor event, reset to 0 after draw(). Use", "url": "/reference/mouseDX.html"}, {"slug": "mouseDY", "name": "mouseDY", "cat": "Input", "subcat": "Mouse", "desc": "Accumulated vertical mouse delta since the last frame. Updated on every raw cursor event, reset to 0 after draw(). Use t", "url": "/reference/mouseDY.html"}, {"slug": "mouseDragged", "name": "mouseDragged()", "cat": "Input", "subcat": "Mouse", "desc": "Called once every time the mouse moves while a button is held.", "url": "/reference/mouseDragged.html"}, {"slug": "mouseMoved", "name": "mouseMoved()", "cat": "Input", "subcat": "Mouse", "desc": "Called every time the mouse moves and no button is pressed.", "url": "/reference/mouseMoved.html"}, {"slug": "mousePressed_fn", "name": "mousePressed()", "cat": "Input", "subcat": "Mouse", "desc": "Called once after every time a mouse button is pressed.", "url": "/reference/mousePressed_fn.html"}, {"slug": "mousePressed_var", "name": "_mousePressed", "cat": "Input", "subcat": "Mouse", "desc": "Variable storing whether any mouse button is currently pressed.", "url": "/reference/mousePressed_var.html"}, {"slug": "mouseReleased", "name": "mouseReleased()", "cat": "Input", "subcat": "Mouse", "desc": "Called every time a mouse button is released.", "url": "/reference/mouseReleased.html"}, {"slug": "mouseWheel", "name": "mouseWheel()", "cat": "Input", "subcat": "Mouse", "desc": "Called when the mouse wheel moves. The count parameter is positive when scrolled down and negative when scrolled up.", "url": "/reference/mouseWheel.html"}, {"slug": "mouseX", "name": "mouseX", "cat": "Input", "subcat": "Mouse", "desc": "The system variable mouseX always contains the current horizontal position of the mouse.", "url": "/reference/mouseX.html"}, {"slug": "mouseY", "name": "mouseY", "cat": "Input", "subcat": "Mouse", "desc": "The system variable mouseY always contains the current vertical position of the mouse.", "url": "/reference/mouseY.html"}, {"slug": "nf", "name": "nf()", "cat": "Data", "subcat": "String_Functions", "desc": "Formats a number as a string with a specified number of digits.", "url": "/reference/nf.html"}, {"slug": "noClip", "name": "noClip()", "cat": "Rendering", "subcat": "Shaders", "desc": "Disables the clipping region set with clip().", "url": "/reference/noClip.html"}, {"slug": "noCursor", "name": "noCursor()", "cat": "Environment", "subcat": "", "desc": "Hides the cursor from view.", "url": "/reference/noCursor.html"}, {"slug": "noFill", "name": "noFill()", "cat": "Color", "subcat": "Setting", "desc": "Disables filling geometry. Shapes will only have a stroke outline.", "url": "/reference/noFill.html"}, {"slug": "noLights", "name": "noLights()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Disables all lighting. Geometry will be rendered flat with fill color only.", "url": "/reference/noLights.html"}, {"slug": "noLoop", "name": "noLoop()", "cat": "Structure", "subcat": "", "desc": "Stops Processing from continuously executing the code within draw(). draw() is called once and then stops.", "url": "/reference/noLoop.html"}, {"slug": "noSmooth", "name": "noSmooth()", "cat": "Environment", "subcat": "", "desc": "Draws all geometry with jagged (aliased) edges.", "url": "/reference/noSmooth.html"}, {"slug": "noStroke", "name": "noStroke()", "cat": "Color", "subcat": "Setting", "desc": "Disables drawing the stroke (outline).", "url": "/reference/noStroke.html"}, {"slug": "noTint", "name": "noTint()", "cat": "Color", "subcat": "Setting", "desc": "Removes the current fill value for displaying images.", "url": "/reference/noTint.html"}, {"slug": "noise", "name": "noise()", "cat": "Math", "subcat": "Random", "desc": "Returns the Perlin noise value at specified coordinates. Produces smoother and more natural sequences than random().", "url": "/reference/noise.html"}, {"slug": "noiseDetail", "name": "noiseDetail()", "cat": "Math", "subcat": "Random", "desc": "Adjusts the character and level of detail produced by the Perlin noise function.", "url": "/reference/noiseDetail.html"}, {"slug": "noiseSeed", "name": "noiseSeed()", "cat": "Math", "subcat": "Random", "desc": "Sets the seed value for noise().", "url": "/reference/noiseSeed.html"}, {"slug": "norm", "name": "norm()", "cat": "Math", "subcat": "Calculation", "desc": "Normalizes a number from a range into a value between 0.0 and 1.0.", "url": "/reference/norm.html"}, {"slug": "normal", "name": "normal()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Sets the current normal vector. Used to specify the surface orientation for lighting calculations.", "url": "/reference/normal.html"}, {"slug": "ortho", "name": "ortho()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Sets an orthographic projection, where objects appear flat and no foreshortening occurs.", "url": "/reference/ortho.html"}, {"slug": "parseJSONArray", "name": "parseJSONArray()", "cat": "Input", "subcat": "Files", "desc": "Parses a JSON array string and returns a JSONValue.", "url": "/reference/parseJSONArray.html"}, {"slug": "parseJSONObject", "name": "parseJSONObject()", "cat": "Input", "subcat": "Files", "desc": "Parses a JSON string and returns a JSONValue object.", "url": "/reference/parseJSONObject.html"}, {"slug": "parseXML", "name": "parseXML()", "cat": "Input", "subcat": "Files", "desc": "Parses an XML string and returns an XML object.", "url": "/reference/parseXML.html"}, {"slug": "perspective", "name": "perspective()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Sets a perspective projection. Simulates natural foreshortening. No args sets default.", "url": "/reference/perspective.html"}, {"slug": "pixelDensity", "name": "pixelDensity()", "cat": "Environment", "subcat": "", "desc": "Sets the pixel density for high-DPI (HiDPI/Retina) displays.", "url": "/reference/pixelDensity.html"}, {"slug": "pixelHeight", "name": "pixelHeight", "cat": "Environment", "subcat": "", "desc": "Actual framebuffer height in pixels. Differs from height on HiDPI screens.", "url": "/reference/pixelHeight.html"}, {"slug": "pixelWidth", "name": "pixelWidth", "cat": "Environment", "subcat": "", "desc": "Actual framebuffer width in pixels. Differs from width on HiDPI screens.", "url": "/reference/pixelWidth.html"}, {"slug": "pixels_arr", "name": "pixels[]", "cat": "Image", "subcat": "Pixels", "desc": "Array containing the values for all the pixels in the display window or PImage. Must call loadPixels() before reading an", "url": "/reference/pixels_arr.html"}, {"slug": "pmouseX", "name": "pmouseX", "cat": "Input", "subcat": "Mouse", "desc": "The horizontal position of the mouse in the previous frame.", "url": "/reference/pmouseX.html"}, {"slug": "pmouseY", "name": "pmouseY", "cat": "Input", "subcat": "Mouse", "desc": "The vertical position of the mouse in the previous frame.", "url": "/reference/pmouseY.html"}, {"slug": "point", "name": "point()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a point at the given coordinates.", "url": "/reference/point.html"}, {"slug": "pointLight", "name": "pointLight()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Adds a point light. Emanates from a specific position in all directions.", "url": "/reference/pointLight.html"}, {"slug": "pop", "name": "pop()", "cat": "Structure", "subcat": "", "desc": "Restores the previous drawing style settings and transformations saved with push().", "url": "/reference/pop.html"}, {"slug": "popMatrix", "name": "popMatrix()", "cat": "Structure", "subcat": "", "desc": "Pops the current transformation matrix off the matrix stack.", "url": "/reference/popMatrix.html"}, {"slug": "popStyle", "name": "popStyle()", "cat": "Structure", "subcat": "", "desc": "Restores the previous style settings saved with pushStyle().", "url": "/reference/popStyle.html"}, {"slug": "pow", "name": "pow()", "cat": "Math", "subcat": "Calculation", "desc": "Facilitates exponential expressions. Calculates b raised to the power e.", "url": "/reference/pow.html"}, {"slug": "print", "name": "print()", "cat": "Output", "subcat": "Text_Area", "desc": "Writes to the console. Does not add a newline. Accepts any type.", "url": "/reference/print.html"}, {"slug": "printArray", "name": "printArray()", "cat": "Output", "subcat": "Text_Area", "desc": "Prints the contents of a std::vector to the console with indices.", "url": "/reference/printArray.html"}, {"slug": "printCamera", "name": "printCamera()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Prints the current camera matrix to the console.", "url": "/reference/printCamera.html"}, {"slug": "printMatrix", "name": "printMatrix()", "cat": "Transform", "subcat": "", "desc": "Prints the current matrix to the console.", "url": "/reference/printMatrix.html"}, {"slug": "printProjection", "name": "printProjection()", "cat": "Lights_Camera", "subcat": "Camera", "desc": "Prints the current projection matrix to the console.", "url": "/reference/printProjection.html"}, {"slug": "println", "name": "println()", "cat": "Output", "subcat": "Text_Area", "desc": "Writes to the console, followed by a newline. Call with no args for a blank line.", "url": "/reference/println.html"}, {"slug": "push", "name": "push()", "cat": "Structure", "subcat": "", "desc": "Saves the current drawing style settings and transformations. Use pop() to restore.", "url": "/reference/push.html"}, {"slug": "pushMatrix", "name": "pushMatrix()", "cat": "Structure", "subcat": "", "desc": "Pushes the current transformation matrix onto the matrix stack.", "url": "/reference/pushMatrix.html"}, {"slug": "pushStyle", "name": "pushStyle()", "cat": "Structure", "subcat": "", "desc": "Saves the current style settings (fill, stroke, font, etc.) onto a stack.", "url": "/reference/pushStyle.html"}, {"slug": "quad", "name": "quad()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a quadrilateral (a four-sided polygon) using the x and y coordinates of its four vertices.", "url": "/reference/quad.html"}, {"slug": "quadraticVertex", "name": "quadraticVertex()", "cat": "Shape", "subcat": "Vertex", "desc": "Specifies a vertex with a single control point for quadratic bezier curves.", "url": "/reference/quadraticVertex.html"}, {"slug": "radians", "name": "radians()", "cat": "Math", "subcat": "Trigonometry", "desc": "Converts a degree measurement to its corresponding value in radians.", "url": "/reference/radians.html"}, {"slug": "random", "name": "random()", "cat": "Math", "subcat": "Random", "desc": "Generates random numbers. With one argument, returns a value from 0 up to (but not including) the parameter. With two ar", "url": "/reference/random.html"}, {"slug": "randomGaussian", "name": "randomGaussian()", "cat": "Math", "subcat": "Random", "desc": "Returns a float from a random series of numbers having a mean of 0 and standard deviation of 1.", "url": "/reference/randomGaussian.html"}, {"slug": "randomSeed", "name": "randomSeed()", "cat": "Math", "subcat": "Random", "desc": "Sets the seed value for random(). Repeated calls with the same seed will produce the same sequence.", "url": "/reference/randomSeed.html"}, {"slug": "rect", "name": "rect()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a rectangle to the screen. The fourth parameter can be a corner radius.", "url": "/reference/rect.html"}, {"slug": "rectMode", "name": "rectMode()", "cat": "Shape", "subcat": "Attributes", "desc": "Modifies the location from which rectangles are drawn. Default is CORNER.", "url": "/reference/rectMode.html"}, {"slug": "red", "name": "red()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the red value from a color.", "url": "/reference/red.html"}, {"slug": "redraw", "name": "redraw()", "cat": "Structure", "subcat": "", "desc": "Executes the code within draw() one time.", "url": "/reference/redraw.html"}, {"slug": "releaseMouse", "name": "releaseMouse()", "cat": "Environment", "subcat": "", "desc": "Unlocks the cursor from the window and restores normal OS cursor behavior. Call after captureMouse() when the player ope", "url": "/reference/releaseMouse.html"}, {"slug": "resetMatrix", "name": "resetMatrix()", "cat": "Transform", "subcat": "", "desc": "Replaces the current matrix with the identity matrix.", "url": "/reference/resetMatrix.html"}, {"slug": "resetShader", "name": "resetShader()", "cat": "Rendering", "subcat": "Shaders", "desc": "Restores the default rendering pipeline, removing any applied shader.", "url": "/reference/resetShader.html"}, {"slug": "reverse_arr", "name": "reverse()", "cat": "Data", "subcat": "Array_Functions", "desc": "Reverses the order of a std::vector.", "url": "/reference/reverse_arr.html"}, {"slug": "rotate", "name": "rotate()", "cat": "Transform", "subcat": "", "desc": "Rotates a shape by the angle parameter. Angles are in radians.", "url": "/reference/rotate.html"}, {"slug": "rotateX", "name": "rotateX()", "cat": "Transform", "subcat": "", "desc": "Rotates around the x-axis. Use in P3D mode.", "url": "/reference/rotateX.html"}, {"slug": "rotateY", "name": "rotateY()", "cat": "Transform", "subcat": "", "desc": "Rotates around the y-axis. Use in P3D mode.", "url": "/reference/rotateY.html"}, {"slug": "rotateZ", "name": "rotateZ()", "cat": "Transform", "subcat": "", "desc": "Rotates around the z-axis. Use in P3D mode.", "url": "/reference/rotateZ.html"}, {"slug": "round", "name": "round()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the integer closest to the parameter.", "url": "/reference/round.html"}, {"slug": "saturation", "name": "saturation()", "cat": "Color", "subcat": "Creating_and_Reading", "desc": "Extracts the saturation value from a color (HSB mode).", "url": "/reference/saturation.html"}, {"slug": "save", "name": "save()", "cat": "Output", "subcat": "Image", "desc": "Saves an image from the display window. The filename must include an extension (PNG, JPG).", "url": "/reference/save.html"}, {"slug": "saveBytes", "name": "saveBytes()", "cat": "Output", "subcat": "Files", "desc": "Writes a vector of bytes to a file.", "url": "/reference/saveBytes.html"}, {"slug": "saveFrame", "name": "saveFrame()", "cat": "Output", "subcat": "Image", "desc": "Saves a numbered image file. Use #### as a placeholder for the frame number.", "url": "/reference/saveFrame.html"}, {"slug": "saveJSONArray", "name": "saveJSONArray()", "cat": "Output", "subcat": "Files", "desc": "Saves a JSONValue array to a file.", "url": "/reference/saveJSONArray.html"}, {"slug": "saveJSONObject", "name": "saveJSONObject()", "cat": "Output", "subcat": "Files", "desc": "Saves a JSONValue to a file as formatted JSON.", "url": "/reference/saveJSONObject.html"}, {"slug": "saveStrings", "name": "saveStrings()", "cat": "Output", "subcat": "Files", "desc": "Writes an array of strings to a file, one per line.", "url": "/reference/saveStrings.html"}, {"slug": "saveTable", "name": "saveTable()", "cat": "Output", "subcat": "Files", "desc": "Saves a Table to a CSV or TSV file.", "url": "/reference/saveTable.html"}, {"slug": "saveXML", "name": "saveXML()", "cat": "Output", "subcat": "Files", "desc": "Saves an XML object to a file.", "url": "/reference/saveXML.html"}, {"slug": "scale", "name": "scale()", "cat": "Transform", "subcat": "", "desc": "Increases or decreases the size of shapes by expanding and contracting vertices.", "url": "/reference/scale.html"}, {"slug": "screenX", "name": "screenX()", "cat": "Transform", "subcat": "", "desc": "Takes a three-dimensional X, Y, Z position and returns the X value for where it will appear on a 2D screen.", "url": "/reference/screenX.html"}, {"slug": "screenY", "name": "screenY()", "cat": "Transform", "subcat": "", "desc": "Takes a three-dimensional X, Y, Z position and returns the Y value for where it will appear on a 2D screen.", "url": "/reference/screenY.html"}, {"slug": "screenZ", "name": "screenZ()", "cat": "Transform", "subcat": "", "desc": "Takes a three-dimensional X, Y, Z position and returns the Z value for where it will appear on a 2D screen.", "url": "/reference/screenZ.html"}, {"slug": "second", "name": "second()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the current second as a value from 0 to 59.", "url": "/reference/second.html"}, {"slug": "selectFolder", "name": "selectFolder()", "cat": "Input", "subcat": "Files", "desc": "Opens a folder chooser dialog. Returns the selected folder path.", "url": "/reference/selectFolder.html"}, {"slug": "selectInput", "name": "selectInput()", "cat": "Input", "subcat": "Files", "desc": "Opens a file chooser dialog to select an input file. Returns the selected path.", "url": "/reference/selectInput.html"}, {"slug": "selectOutput", "name": "selectOutput()", "cat": "Output", "subcat": "Files", "desc": "Opens a file chooser dialog to select an output file. Returns the path.", "url": "/reference/selectOutput.html"}, {"slug": "set_pixel", "name": "set()", "cat": "Image", "subcat": "Pixels", "desc": "Changes the color of any pixel or writes an image directly to the display window.", "url": "/reference/set_pixel.html"}, {"slug": "setup", "name": "setup()", "cat": "Structure", "subcat": "", "desc": "Called once when the program starts. Define initial environment properties such as screen size and background color.", "url": "/reference/setup.html"}, {"slug": "shader_fn", "name": "shader()", "cat": "Rendering", "subcat": "Shaders", "desc": "Applies a PShader to the rendering pipeline.", "url": "/reference/shader_fn.html"}, {"slug": "shape", "name": "shape()", "cat": "Shape", "subcat": "Loading_and_Displaying", "desc": "Draws a shape to the display window.", "url": "/reference/shape.html"}, {"slug": "shapeMode", "name": "shapeMode()", "cat": "Shape", "subcat": "Loading_and_Displaying", "desc": "Modifies the location from which shapes are drawn. Default is CORNER.", "url": "/reference/shapeMode.html"}, {"slug": "shearX", "name": "shearX()", "cat": "Transform", "subcat": "", "desc": "Shears a shape around the x-axis the amount specified by the angle parameter.", "url": "/reference/shearX.html"}, {"slug": "shearY", "name": "shearY()", "cat": "Transform", "subcat": "", "desc": "Shears a shape around the y-axis the amount specified by the angle parameter.", "url": "/reference/shearY.html"}, {"slug": "shininess", "name": "shininess()", "cat": "Lights_Camera", "subcat": "Material_Properties", "desc": "Sets the amount of gloss in the surface of shapes. Used with specular().", "url": "/reference/shininess.html"}, {"slug": "shorten", "name": "shorten()", "cat": "Data", "subcat": "Array_Functions", "desc": "Decreases a std::vector by one element. Removes the last element.", "url": "/reference/shorten.html"}, {"slug": "sin", "name": "sin()", "cat": "Math", "subcat": "Trigonometry", "desc": "Calculates the sine of an angle in radians.", "url": "/reference/sin.html"}, {"slug": "size", "name": "size()", "cat": "Environment", "subcat": "", "desc": "Defines the dimension of the display window. Call in setup(). Optionally pass P2D or P3D as renderer.", "url": "/reference/size.html"}, {"slug": "smooth", "name": "smooth()", "cat": "Environment", "subcat": "", "desc": "Draws all geometry with smooth (anti-aliased) edges. Enabled by default.", "url": "/reference/smooth.html"}, {"slug": "sort_arr", "name": "sort()", "cat": "Data", "subcat": "Array_Functions", "desc": "Sorts a std::vector in ascending order.", "url": "/reference/sort_arr.html"}, {"slug": "specular", "name": "specular()", "cat": "Lights_Camera", "subcat": "Material_Properties", "desc": "Sets the specular color of the materials used for shapes drawn to the screen.", "url": "/reference/specular.html"}, {"slug": "sphere", "name": "sphere()", "cat": "Shape", "subcat": "3D_Primitives", "desc": "Draws a sphere. Use sphereDetail() to control tessellation. Must be in P3D mode.", "url": "/reference/sphere.html"}, {"slug": "sphereDetail", "name": "sphereDetail()", "cat": "Shape", "subcat": "3D_Primitives", "desc": "Controls the detail used to render a sphere by adjusting the number of vertices.", "url": "/reference/sphereDetail.html"}, {"slug": "splice", "name": "splice()", "cat": "Data", "subcat": "Array_Functions", "desc": "Inserts a value or vector of values into an existing vector at the given index.", "url": "/reference/splice.html"}, {"slug": "split", "name": "split()", "cat": "Data", "subcat": "String_Functions", "desc": "Splits a string into substrings using a delimiter character.", "url": "/reference/split.html"}, {"slug": "splitTokens", "name": "splitTokens()", "cat": "Data", "subcat": "String_Functions", "desc": "Splits a string into substrings using any character in the delimiters string.", "url": "/reference/splitTokens.html"}, {"slug": "spotLight", "name": "spotLight()", "cat": "Lights_Camera", "subcat": "Lights", "desc": "Adds a spotlight. Creates a cone of light from a specific position pointing in a direction.", "url": "/reference/spotLight.html"}, {"slug": "sq", "name": "sq()", "cat": "Math", "subcat": "Calculation", "desc": "Squares a number (multiplies a number by itself). Same as x*x.", "url": "/reference/sq.html"}, {"slug": "sqrt", "name": "sqrt()", "cat": "Math", "subcat": "Calculation", "desc": "Calculates the square root of a number.", "url": "/reference/sqrt.html"}, {"slug": "square", "name": "square()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a square to the screen.", "url": "/reference/square.html"}, {"slug": "str", "name": "str()", "cat": "Data", "subcat": "String_Functions", "desc": "Converts an int, float, bool, or char to a std::string.", "url": "/reference/str.html"}, {"slug": "stroke", "name": "stroke()", "cat": "Color", "subcat": "Setting", "desc": "Sets the color used to draw lines and borders around shapes.", "url": "/reference/stroke.html"}, {"slug": "strokeCap", "name": "strokeCap()", "cat": "Color", "subcat": "Setting", "desc": "Sets the style for rendering line endings. Options: ROUND, SQUARE, PROJECT.", "url": "/reference/strokeCap.html"}, {"slug": "strokeJoin", "name": "strokeJoin()", "cat": "Color", "subcat": "Setting", "desc": "Sets the style of the joints which connect line segments. Options: MITER, BEVEL, ROUND.", "url": "/reference/strokeJoin.html"}, {"slug": "strokeWeight", "name": "strokeWeight()", "cat": "Color", "subcat": "Setting", "desc": "Sets the width of the stroke used for lines, points, and shape borders.", "url": "/reference/strokeWeight.html"}, {"slug": "subset", "name": "subset()", "cat": "Data", "subcat": "Array_Functions", "desc": "Extracts an array of elements from an existing vector.", "url": "/reference/subset.html"}, {"slug": "tan", "name": "tan()", "cat": "Math", "subcat": "Trigonometry", "desc": "Calculates the ratio of the sine and cosine of an angle.", "url": "/reference/tan.html"}, {"slug": "text", "name": "text()", "cat": "Typography", "subcat": "Loading_and_Displaying", "desc": "Draws text to the screen. With a bounding box (x, y, w, h), text wraps automatically.", "url": "/reference/text.html"}, {"slug": "textAlign", "name": "textAlign()", "cat": "Typography", "subcat": "Attributes", "desc": "Sets the alignment for drawing text. The first parameter can be LEFT, CENTER, or RIGHT. The second parameter (optional) ", "url": "/reference/textAlign.html"}, {"slug": "textAscent", "name": "textAscent()", "cat": "Typography", "subcat": "Metrics", "desc": "Returns the ascent of the current font at its current size. The ascent is the height of the character above the baseline", "url": "/reference/textAscent.html"}, {"slug": "textDescent", "name": "textDescent()", "cat": "Typography", "subcat": "Metrics", "desc": "Returns the descent of the current font at its current size. The descent is the distance below the baseline.", "url": "/reference/textDescent.html"}, {"slug": "textFont", "name": "textFont()", "cat": "Typography", "subcat": "Loading_and_Displaying", "desc": "Sets the current font for text rendering.", "url": "/reference/textFont.html"}, {"slug": "textLeading", "name": "textLeading()", "cat": "Typography", "subcat": "Attributes", "desc": "Sets the spacing between lines of text in units of pixels.", "url": "/reference/textLeading.html"}, {"slug": "textMode", "name": "textMode()", "cat": "Typography", "subcat": "Attributes", "desc": "Sets the way text draws to the screen, either as texture maps or as vector geometry.", "url": "/reference/textMode.html"}, {"slug": "textSize", "name": "textSize()", "cat": "Typography", "subcat": "Attributes", "desc": "Sets the current font size. This size will be used in all subsequent calls to text().", "url": "/reference/textSize.html"}, {"slug": "textWidth", "name": "textWidth()", "cat": "Typography", "subcat": "Metrics", "desc": "Calculates and returns the width of any character or text string in the current font.", "url": "/reference/textWidth.html"}, {"slug": "texture", "name": "texture()", "cat": "Image", "subcat": "Textures", "desc": "Sets a texture to be applied to vertex points. Must be called between beginShape() and endShape().", "url": "/reference/texture.html"}, {"slug": "textureMode", "name": "textureMode()", "cat": "Image", "subcat": "Textures", "desc": "Sets the coordinate space for texture mapping. IMAGE uses pixel coordinates, NORMAL uses 0.0 to 1.0.", "url": "/reference/textureMode.html"}, {"slug": "textureWrap", "name": "textureWrap()", "cat": "Image", "subcat": "Textures", "desc": "Defines if textures repeat or clamp when outside the texture boundary.", "url": "/reference/textureWrap.html"}, {"slug": "thread", "name": "thread()", "cat": "Structure", "subcat": "", "desc": "Runs a function on a new detached thread. Accepts a lambda or std::function.", "url": "/reference/thread.html"}, {"slug": "tint", "name": "tint()", "cat": "Color", "subcat": "Setting", "desc": "Sets the fill value for displaying images. Images can be tinted to specified colors.", "url": "/reference/tint.html"}, {"slug": "translate", "name": "translate()", "cat": "Transform", "subcat": "", "desc": "Specifies an amount to displace objects. Supports 2D and 3D.", "url": "/reference/translate.html"}, {"slug": "triangle", "name": "triangle()", "cat": "Shape", "subcat": "2d_Primitives", "desc": "Draws a triangle to the screen using the coordinates of its three vertices.", "url": "/reference/triangle.html"}, {"slug": "trim", "name": "trim()", "cat": "Data", "subcat": "String_Functions", "desc": "Removes whitespace characters from the beginning and end of a string.", "url": "/reference/trim.html"}, {"slug": "unbinary", "name": "unbinary()", "cat": "Data", "subcat": "String_Functions", "desc": "Converts a binary string to an integer.", "url": "/reference/unbinary.html"}, {"slug": "unhex", "name": "unhex()", "cat": "Data", "subcat": "String_Functions", "desc": "Converts a hexadecimal string to an integer.", "url": "/reference/unhex.html"}, {"slug": "updatePixels", "name": "updatePixels()", "cat": "Image", "subcat": "Pixels", "desc": "Updates the display window with the data in the pixels[] array.", "url": "/reference/updatePixels.html"}, {"slug": "vector_class", "name": "std::vector", "cat": "Data", "subcat": "Composite", "desc": "A dynamic array from the C++ Standard Library. Available without any #include. In C++ Mode, std::vector replaces IntList", "url": "/reference/vector_class.html"}, {"slug": "vertex", "name": "vertex()", "cat": "Shape", "subcat": "Vertex", "desc": "Adds a vertex to a shape defined with beginShape().", "url": "/reference/vertex.html"}, {"slug": "width", "name": "width", "cat": "Environment", "subcat": "", "desc": "System variable storing the width of the display window as set by size().", "url": "/reference/width.html"}, {"slug": "windowMoved", "name": "windowMoved()", "cat": "Environment", "subcat": "", "desc": "Called when the sketch window is moved. Define this function in your sketch to respond to window move events.", "url": "/reference/windowMoved.html"}, {"slug": "windowResizable", "name": "windowResizable()", "cat": "Environment", "subcat": "", "desc": "Makes the window resizable by the user.", "url": "/reference/windowResizable.html"}, {"slug": "windowResize", "name": "windowResize()", "cat": "Environment", "subcat": "", "desc": "Resizes the window to the specified dimensions.", "url": "/reference/windowResize.html"}, {"slug": "windowResized", "name": "windowResized()", "cat": "Environment", "subcat": "", "desc": "Called when the sketch window is resized. Define this function in your sketch to respond to window resize events.", "url": "/reference/windowResized.html"}, {"slug": "windowTitle", "name": "windowTitle()", "cat": "Environment", "subcat": "", "desc": "Sets the title of the sketch window.", "url": "/reference/windowTitle.html"}, {"slug": "year", "name": "year()", "cat": "Input", "subcat": "Time_and_Date", "desc": "Returns the current year as an integer.", "url": "/reference/year.html"}]