0% found this document useful (0 votes)
884 views1 page

Cheat Sheet

This document provides an overview of the functions and methods available in the Quil 1.0.0-SNAPSHOT library. It summarizes the core capabilities for working with 2D and 3D shapes, colors, curves, images, text, input handling, math functions, output, and more. The document is describing the full API exposed by the Quil library.

Uploaded by

Jan Aerts
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
884 views1 page

Cheat Sheet

This document provides an overview of the functions and methods available in the Quil 1.0.0-SNAPSHOT library. It summarizes the core capabilities for working with 2D and 3D shapes, colors, curves, images, text, input handling, math functions, output, and more. The document is describing the full API exposed by the Quil library.

Uploaded by

Jan Aerts
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Quil 1.0.

0-SNAPSHOT

Shape
2D Primitives 3D Primitives Attributes arc ellipse line point quad rect triangle box sphere sphere-detail ellipse-mode no-smooth rect-mode smooth stroke-cap stroke-join stroke-weight bezier bezier-detail bezier-point bezier-tangent curve curve-detail curve-point curve-tangent curve-tightness load-shape shape shape-mode begin-shape bezier-vertex curve-vertex end-shape texture texture-mode vertex

Color
Creating & Reading alpha blend-color blue brightness color color-mode green hue lerp-color red saturation no-tint blend background background-float background-image background-int fill fill-float fill-int no-fill no-stroke stroke stroke-float stroke-int

Curves

Loading & Displaying Pixels Setting

Loading & Displaying Vertex

State
set-state! state

Data
Conversion binary hex unbinary unhex

Structure
delay-frame exit no-loop pop-style push-style redraw start-loop

Environment
current-frame-rate cursor cursor-image focused frame-count frame-rate height no-cursor screen-height screen-width width

Transform
apply-matrix pop-matrix print-matrix push-matrix reset-matrix rotate rotate-x rotate-y rotate-z scale shear-x shear-y translate with-rotation with-translation

Image
Loading & Displaying create-image image image-mode load-image mask-image request-image tint tint-float tint-int copy display-filter get-pixel load-pixels pixels set-image set-pixel update-pixels Utility Macros

Typography
Attributes Loading & Displaying text-align text-leading text-mode text-size text-width available-fonts create-font font-available? load-font text text-char text-font text-num text-ascent text-descent

Pixels

Input
Files Keyboard Mouse Time & Date create-input create-input-raw load-bytes load-strings key-code key-pressed? raw-key mouse-button mouse-state mouse-x mouse-y pmouse-x pmouse-y day hour millis minute month seconds year

Metrics

Sketch
Creation Control Cong Keywords Draw Callback Keywords Mouse Callback Keywords sketch defsketch sketch-stop sketch-start sketch-close :title :size :renderer :setup :draw :mouse-pressed :mouse-released :mouse-moved :mouse-dragged :mouse-entered :mouse-exited :mouse-clicked :key-pressed :key-released :key-typed :focus-gained :focus-lost

Lights, Camera
Camera begin-camera camera end-camera frustum ortho perspective print-camera print-projection model-x model-y model-z screen-x screen-y screen-z ambient-light directional-light light-falloff light-specular lights no-lights normal point-light spot-light ambient ambient-float ambient-int emissive emissive-float emissive-int shininess specular

Coordinates Lights

Keyboard Callback Keywords Window Callback Keywords

Material Properties

Reection
API Exploration Version doc-cats doc-fns doc-meths processing-version

Math
Calculation abs abs-float abs-int ceil constrain constrain-float constrain-int dist exp lerp log mag map-range norm pow round sq sqrt noise noise-detail noise-seed random random-seed acos asin atan atan2 cos degrees radians sin tan

Helper Namespaces (not included by default)


quil.helpers.calc quil.helpers.drawing quil.helpers.seqs mul-add mode-range line-join-points range-incl indexed-range-incl indexed-range steps cycle-between tap seq->stream tally perlin-noise-seq

Random Trigonometry

Output
Files Image begin-raw begin-record create-output end-raw end-record save save-frame

$Revision: 1.0.0.0, $Date: 12th March, 2012 Sam Aaron (sam.aaron gmail com)

Rendering
create-graphics hint

You might also like