├── ISSUE_TEMPLATE.md
├── test
├── unit
│ ├── webgl
│ │ ├── matrix.js
│ │ └── p5.RendererGL.js
│ └── assets
│ │ ├── acmesa.ttf
│ │ ├── object.json
│ │ ├── target.gif
│ │ ├── nyan_cat.gif
│ │ ├── renders
│ │ ├── line.png
│ │ ├── random.png
│ │ ├── test.png
│ │ ├── test1.png
│ │ ├── test2.png
│ │ └── ellipse.png
│ │ ├── target_small.gif
│ │ ├── csv.csv
│ │ └── array.json
├── manual-test-examples
│ ├── loadingscreen
│ │ ├── test.json
│ │ ├── test.xml
│ │ ├── invalid.json
│ │ ├── banana.png
│ │ ├── mammals.csv
│ │ ├── test.txt
│ │ ├── AvenirNextLTPro-Demi.otf
│ │ ├── invalid_json.js
│ │ ├── invalid_json.html
│ │ └── preload_success_callbacks.html
│ ├── p5.Shape
│ │ └── test0
│ │ │ ├── sketch.js
│ │ │ ├── index.html
│ │ │ └── circle.svg
│ ├── async
│ │ ├── loadTable_options
│ │ │ ├── table.csv
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── loadTable_callback
│ │ │ ├── table.csv
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── loadTable_preload
│ │ │ ├── table.csv
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── loadImage
│ │ │ ├── global
│ │ │ │ ├── test.gif
│ │ │ │ └── index.html
│ │ │ └── instance
│ │ │ │ ├── test.gif
│ │ │ │ └── index.html
│ │ ├── loadFont
│ │ │ ├── global
│ │ │ │ ├── acmesa.ttf
│ │ │ │ ├── SourceSansPro-Regular.otf
│ │ │ │ └── index.html
│ │ │ └── instance
│ │ │ │ ├── acmesa.ttf
│ │ │ │ ├── test.gif
│ │ │ │ ├── SourceSansPro-Regular.otf
│ │ │ │ └── index.html
│ │ ├── loadJSON_options
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── loadJSON_preload
│ │ │ └── index.html
│ │ ├── loadXML_preload
│ │ │ └── index.html
│ │ ├── loadStrings_callback
│ │ │ ├── index.html
│ │ │ └── tenderbuttons_excerpt.txt
│ │ ├── loadStrings_preload
│ │ │ ├── index.html
│ │ │ └── tenderbuttons_excerpt.txt
│ │ └── loadJSON_callback
│ │ │ └── index.html
│ ├── p5.Image
│ │ ├── cat.jpg
│ │ ├── unicorn.jpg
│ │ ├── running-cat.png
│ │ ├── sprite_sheet.jpg
│ │ ├── african-savanna.png
│ │ ├── cat-with-alpha.png
│ │ ├── filter.html
│ │ ├── saving.html
│ │ ├── animate.html
│ │ ├── copying.html
│ │ ├── cropping.html
│ │ ├── drawing.html
│ │ ├── manipulate.html
│ │ ├── saving-images.js
│ │ ├── animate-image.js
│ │ └── copying-images.js
│ ├── tint
│ │ ├── flowers.jpg
│ │ ├── index.html
│ │ └── sketch.js
│ ├── p5.Font
│ │ ├── acmesa.ttf
│ │ ├── Lato-Black.ttf
│ │ ├── FiraSans-Book.otf
│ │ ├── Inconsolata-Bold.ttf
│ │ ├── OpenSans-Regular.ttf
│ │ ├── custom
│ │ │ ├── textSketch.png
│ │ │ ├── LEFT.BL.lead.png
│ │ │ ├── LEFT.TOP.lead.png
│ │ │ ├── textAlignSketch.png
│ │ │ ├── textLineSketch.png
│ │ │ ├── textSizeSketch.png
│ │ │ ├── textWidthSketch.png
│ │ │ ├── textWrapSketch.png
│ │ │ ├── LEFT.BOTTOM.lead.png
│ │ │ ├── LEFT.CENTER.lead.png
│ │ │ ├── textOverlapSketch.png
│ │ │ ├── textAlignmentSketch.png
│ │ │ └── textVertAlignmentSketch.png
│ │ ├── system
│ │ │ ├── textSketch.png
│ │ │ ├── LEFT.BL.lead.png
│ │ │ ├── LEFT.TOP.lead.png
│ │ │ ├── textAlignSketch.png
│ │ │ ├── textLineSketch.png
│ │ │ ├── textSizeSketch.png
│ │ │ ├── textWidthSketch.png
│ │ │ ├── textWrapSketch.png
│ │ │ ├── LEFT.BOTTOM.lead.png
│ │ │ ├── LEFT.CENTER.lead.png
│ │ │ ├── textOverlapSketch.png
│ │ │ └── textAllAlignmentsSketch.png
│ │ ├── Montserrat-Regular.ttf
│ │ ├── SourceSansPro-Bold.ttf
│ │ ├── SourceSansPro-Italic.ttf
│ │ ├── SourceSansPro-Regular.otf
│ │ ├── Merriweather-LightItalic.ttf
│ │ ├── PlayfairDisplay-Regular.ttf
│ │ ├── opentype
│ │ │ ├── AvenirNextLTPro-Demi.otf
│ │ │ └── index.html
│ │ ├── style
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── svgpath
│ │ │ └── index.html
│ │ ├── renderpath
│ │ │ └── index.html
│ │ ├── pathpoints
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── callback
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ └── simple
│ │ │ └── index.html
│ ├── pixel
│ │ ├── unicorn.jpg
│ │ ├── set-pixels.html
│ │ ├── update-pixels.html
│ │ └── set-pixels.js
│ ├── env
│ │ └── cursor
│ │ │ ├── banana.png
│ │ │ └── index.html
│ ├── mouse-events
│ │ ├── fingers.mov
│ │ ├── global-mousex
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── global-mousex-offset
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── instance-mousex-css
│ │ │ └── sketch.js
│ │ ├── instance-mousex
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ └── instance-mousex-offset
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ ├── addons
│ │ ├── p5.dom
│ │ │ ├── fingers.mov
│ │ │ ├── fingers.webm
│ │ │ ├── lucky_dragons_-_power_melody.mp3
│ │ │ ├── lucky_dragons_-_power_melody.ogg
│ │ │ ├── capture_audio
│ │ │ │ ├── sketch.js
│ │ │ │ └── index.html
│ │ │ ├── audioelt_onended
│ │ │ │ ├── sketch.js
│ │ │ │ └── index.html
│ │ │ ├── video_to_canvas
│ │ │ │ ├── sketch.js
│ │ │ │ └── index.html
│ │ │ ├── capture_video
│ │ │ │ ├── sketch.js
│ │ │ │ └── index.html
│ │ │ ├── radio_test
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── dropdown_test
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── global
│ │ │ │ └── index.html
│ │ │ ├── input_button
│ │ │ │ └── index.html
│ │ │ ├── slider_button
│ │ │ │ └── index.html
│ │ │ ├── slider_tests
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── video_button
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── video_circles
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── video_pixels
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── video_scrub
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── video_speed
│ │ │ │ └── index.html
│ │ │ ├── brightness_mirror
│ │ │ │ └── index.html
│ │ │ ├── capture_video_sizing
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ ├── audioEltSpotify
│ │ │ │ └── index.html
│ │ │ ├── instance
│ │ │ │ └── index.html
│ │ │ ├── checkbox_test
│ │ │ │ └── index.html
│ │ │ ├── audio_button_slider
│ │ │ │ └── index.html
│ │ │ ├── audioEltSpotifyCrossOrigin
│ │ │ │ └── index.html
│ │ │ ├── file_input
│ │ │ │ ├── index.html
│ │ │ │ └── sketch.js
│ │ │ └── file_input_div
│ │ │ │ └── index.html
│ │ └── p5.sound
│ │ │ ├── _files
│ │ │ ├── beat.mp3
│ │ │ ├── beat.ogg
│ │ │ ├── drum.mp3
│ │ │ ├── drum.ogg
│ │ │ ├── beatbox.mp3
│ │ │ ├── beatbox.ogg
│ │ │ ├── bx-spring.mp3
│ │ │ ├── bx-spring.ogg
│ │ │ ├── doorbell.mp3
│ │ │ ├── doorbell.ogg
│ │ │ ├── studio-b.mp3
│ │ │ ├── studio-b.ogg
│ │ │ ├── small-plate.mp3
│ │ │ ├── small-plate.ogg
│ │ │ ├── concrete-tunnel.mp3
│ │ │ ├── concrete-tunnel.ogg
│ │ │ ├── large-dark-plate.mp3
│ │ │ ├── large-dark-plate.ogg
│ │ │ ├── Damscray_-_Dancing_Tiger_01.mp3
│ │ │ ├── Damscray_-_Dancing_Tiger_01.ogg
│ │ │ ├── Damscray_-_Dancing_Tiger_02.mp3
│ │ │ ├── Damscray_-_Dancing_Tiger_02.ogg
│ │ │ ├── lucky_dragons_-_power_melody.mp3
│ │ │ └── lucky_dragons_-_power_melody.ogg
│ │ │ ├── micLevel
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ │ ├── PulseFFT
│ │ │ └── index.html
│ │ │ ├── envelope
│ │ │ └── index.html
│ │ │ ├── micFFT
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ │ ├── record
│ │ │ └── index.html
│ │ │ ├── waveform
│ │ │ └── index.html
│ │ │ ├── DelaySoundFile
│ │ │ └── index.html
│ │ │ ├── FFT_freqRange
│ │ │ └── index.html
│ │ │ ├── FFT_waveform
│ │ │ └── index.html
│ │ │ ├── FFT_waveform_2
│ │ │ └── index.html
│ │ │ ├── Filter_LowPass
│ │ │ └── index.html
│ │ │ ├── Reverb_basic
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ │ ├── envelopeOnOff
│ │ │ └── index.html
│ │ │ ├── looper_simple
│ │ │ └── index.html
│ │ │ ├── noiseMod_AM
│ │ │ └── index.html
│ │ │ ├── outOfPhase
│ │ │ └── index.html
│ │ │ ├── pan_soundfile
│ │ │ └── index.html
│ │ │ ├── peakDetect
│ │ │ └── index.html
│ │ │ ├── play_soundfile
│ │ │ └── index.html
│ │ │ ├── playbackRate
│ │ │ └── index.html
│ │ │ ├── recordLoops
│ │ │ └── index.html
│ │ │ ├── soundFormats
│ │ │ └── index.html
│ │ │ ├── DelayNoiseEnvelope
│ │ │ └── index.html
│ │ │ ├── Filter_BandPass
│ │ │ └── index.html
│ │ │ ├── Reverb_convolve
│ │ │ └── index.html
│ │ │ ├── Reverb_convolve_FFT
│ │ │ └── index.html
│ │ │ ├── amplitude_analysis
│ │ │ └── index.html
│ │ │ ├── autoCorrelation
│ │ │ └── index.html
│ │ │ ├── loadSound_callback
│ │ │ └── index.html
│ │ │ ├── loadSound_preload
│ │ │ └── index.html
│ │ │ ├── micLevel_on_off
│ │ │ └── index.html
│ │ │ ├── oscillatorMod_AM
│ │ │ └── index.html
│ │ │ ├── oscillatorMod_FM
│ │ │ └── index.html
│ │ │ ├── oscillatorWaveform
│ │ │ └── index.html
│ │ │ ├── oscillator_FMSynth
│ │ │ └── index.html
│ │ │ ├── pause_soundfile
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ │ ├── peakDetect_basic
│ │ │ └── index.html
│ │ │ ├── soundfileMod_AM
│ │ │ └── index.html
│ │ │ ├── soundfile_playMode
│ │ │ └── index.html
│ │ │ ├── FFT_frequency_spectrum
│ │ │ └── index.html
│ │ │ ├── oscillatorSecondsFromNow
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ │ ├── waveform_with_playhead
│ │ │ └── index.html
│ │ │ └── waveform_peaks_with_playhead
│ │ │ └── index.html
│ ├── tutorials
│ │ ├── DOM-extensions
│ │ │ ├── 0
│ │ │ │ └── index.html
│ │ │ ├── 1
│ │ │ │ └── index.html
│ │ │ ├── 2
│ │ │ │ └── index.html
│ │ │ ├── 3
│ │ │ │ └── index.html
│ │ │ ├── 4
│ │ │ │ └── index.html
│ │ │ ├── 5
│ │ │ │ └── index.html
│ │ │ ├── 6
│ │ │ │ └── index.html
│ │ │ ├── 7
│ │ │ │ └── index.html
│ │ │ ├── 8
│ │ │ │ └── index.html
│ │ │ ├── dom_1.png
│ │ │ ├── dom_5.png
│ │ │ ├── dom_7.png
│ │ │ ├── dom_8.png
│ │ │ ├── dom_2-0.png
│ │ │ └── dom_2-1.png
│ │ └── Integrating-other-libraries
│ │ │ ├── 0
│ │ │ ├── rhodes_loop.wav
│ │ │ └── index.html
│ │ │ ├── 1
│ │ │ ├── red.jpg
│ │ │ ├── rhodes_loop.wav
│ │ │ └── index.html
│ │ │ └── 2
│ │ │ ├── red.jpg
│ │ │ ├── rhodes_loop.wav
│ │ │ └── index.html
│ ├── webgl
│ │ ├── material
│ │ │ ├── texture
│ │ │ │ └── assets
│ │ │ │ │ ├── cat.jpg
│ │ │ │ │ ├── UV_Grid_Lg.jpg
│ │ │ │ │ ├── UV_Grid_Sm.jpg
│ │ │ │ │ ├── UV_Grid_Med.jpg
│ │ │ │ │ ├── tiny_grid_@2X.png
│ │ │ │ │ └── 360video_256crop_v2.mp4
│ │ │ └── simple
│ │ │ │ └── sketch.js
│ │ ├── lights
│ │ │ ├── ambientLight
│ │ │ │ └── sketch.js
│ │ │ ├── pointLight
│ │ │ │ └── sketch.js
│ │ │ ├── directionalLight
│ │ │ │ └── sketch.js
│ │ │ └── multipleLights
│ │ │ │ └── sketch.js
│ │ ├── mobile
│ │ │ └── sketch.js
│ │ ├── camera
│ │ │ ├── ortho
│ │ │ │ └── sketch.js
│ │ │ └── perspective
│ │ │ │ └── sketch.js
│ │ ├── interaction
│ │ │ └── sketch.js
│ │ ├── performance
│ │ │ └── sketch.js
│ │ ├── origin
│ │ │ ├── topleft_origin
│ │ │ │ └── sketch.js
│ │ │ └── center_origin
│ │ │ │ └── sketch.js
│ │ └── mixedMode
│ │ │ └── sketch.js
│ ├── empty-example
│ │ ├── sketch.js
│ │ └── index.html
│ ├── instantiation-global
│ │ ├── case3
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── case1
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── case2
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── case4
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── case5
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ └── case6
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ ├── instantiation-instance
│ │ ├── case0
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── case1
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── case5
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── case4
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── case3
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ └── case6
│ │ │ └── index.html
│ ├── learningprocessing
│ │ ├── chp1
│ │ │ ├── index.html
│ │ │ ├── example_1_1.js
│ │ │ ├── example_1_2.js
│ │ │ ├── example_1_3.js
│ │ │ ├── example_1_5.js
│ │ │ └── example_1_4.js
│ │ ├── chp2
│ │ │ └── index.html
│ │ ├── chp3
│ │ │ ├── index.html
│ │ │ ├── example_3_4.js
│ │ │ ├── example_3_2.js
│ │ │ └── example_3_5.js
│ │ ├── chp4
│ │ │ ├── index.html
│ │ │ ├── example_4_2.js
│ │ │ ├── example_4_5.js
│ │ │ ├── example_4_3.js
│ │ │ └── example_4_6.js
│ │ ├── chp5
│ │ │ └── index.html
│ │ ├── chp6
│ │ │ ├── index.html
│ │ │ ├── example_6_6.js
│ │ │ ├── example_6_1.js
│ │ │ ├── example_6_4.js
│ │ │ ├── example_6_3.js
│ │ │ └── example_6_8.js
│ │ ├── chp7
│ │ │ ├── index.html
│ │ │ ├── example_7_1.js
│ │ │ └── example_7_2.js
│ │ ├── chp8
│ │ │ └── index.html
│ │ ├── chp9
│ │ │ ├── index.html
│ │ │ ├── example_9_6.js
│ │ │ ├── example_9_3.js
│ │ │ ├── example_9_5.js
│ │ │ ├── example_9_7.js
│ │ │ ├── example_9_4.js
│ │ │ └── example_9_2.js
│ │ └── chp10
│ │ │ ├── example_10_4
│ │ │ ├── index.html
│ │ │ └── example_10_4.js
│ │ │ ├── example_10_6
│ │ │ ├── index.html
│ │ │ └── example_10_6.js
│ │ │ ├── example_10_8
│ │ │ ├── index.html
│ │ │ └── example_10_8.js
│ │ │ ├── example_10_2
│ │ │ ├── index.html
│ │ │ └── example_10_2.js
│ │ │ ├── example_10_3
│ │ │ └── index.html
│ │ │ ├── example_10_5
│ │ │ ├── index.html
│ │ │ └── example_10_5.js
│ │ │ ├── example_10_7
│ │ │ └── index.html
│ │ │ ├── example_10_1
│ │ │ ├── index.html
│ │ │ ├── catcher.js
│ │ │ └── example_10_1.js
│ │ │ ├── example_10_10
│ │ │ └── index.html
│ │ │ └── example_10_9
│ │ │ ├── index.html
│ │ │ └── catcher.js
│ ├── saveData
│ │ ├── saveStrings
│ │ │ ├── sketch.js
│ │ │ └── index.html
│ │ ├── saveJSONArray
│ │ │ └── index.html
│ │ └── saveJSONObject
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ ├── keyboard
│ │ ├── gamestyle.html
│ │ ├── keyIsPressed.html
│ │ ├── gamestyle.js
│ │ └── keyIsPressed.js
│ ├── p5.Table
│ │ ├── saveTable
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── trim
│ │ │ └── index.html
│ │ ├── findRows
│ │ │ └── index.html
│ │ ├── getColumn
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── getObject
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── matchRow
│ │ │ ├── index.html
│ │ │ └── sketch.js
│ │ ├── matchRows
│ │ │ └── index.html
│ │ └── removeTokens
│ │ │ └── index.html
│ ├── p5.Vector
│ │ ├── NOC_2_7_attraction_many
│ │ │ └── index.html
│ │ ├── NOC_2_5_fluidresistance
│ │ │ └── index.html
│ │ └── NOC_6_09_Flocking
│ │ │ ├── index.html
│ │ │ └── flock.js
│ └── module.html
└── .jshintrc
├── .jscsrc
├── docs
├── yuidoc-p5-theme
│ ├── assets
│ │ ├── Bold.ttf
│ │ ├── beat.mp3
│ │ ├── beat.ogg
│ │ ├── drum.mp3
│ │ ├── drum.ogg
│ │ ├── mask.png
│ │ ├── mask2.png
│ │ ├── Avenir.otf
│ │ ├── Italic.ttf
│ │ ├── Regular.otf
│ │ ├── beatbox.mp3
│ │ ├── beatbox.ogg
│ │ ├── bricks.jpg
│ │ ├── doorbell.mp3
│ │ ├── doorbell.ogg
│ │ ├── fingers.mov
│ │ ├── moonwalk.jpg
│ │ ├── rockies.jpg
│ │ ├── studio-b.mp3
│ │ ├── studio-b.ogg
│ │ ├── bx-spring.mp3
│ │ ├── bx-spring.ogg
│ │ ├── laDefense.jpg
│ │ ├── mammals.csv
│ │ ├── bricks_third.jpg
│ │ ├── small-plate.mp3
│ │ ├── small-plate.ogg
│ │ ├── concrete-tunnel.mp3
│ │ ├── concrete-tunnel.ogg
│ │ ├── large-dark-plate.mp3
│ │ ├── large-dark-plate.ogg
│ │ ├── AvenirNextLTPro-Demi.otf
│ │ ├── Damscray_DancingTiger.mp3
│ │ ├── Damscray_DancingTiger.ogg
│ │ ├── test.txt
│ │ ├── Damscray_-_Dancing_Tiger_01.mp3
│ │ ├── Damscray_-_Dancing_Tiger_01.ogg
│ │ ├── Damscray_-_Dancing_Tiger_02.mp3
│ │ ├── Damscray_-_Dancing_Tiger_02.ogg
│ │ ├── lucky_dragons_-_power_melody.mp3
│ │ ├── lucky_dragons_-_power_melody.ogg
│ │ └── mammals.xml
│ └── helpers
│ │ ├── helpers_prod.js
│ │ └── helpers_dev.js
└── yuidoc-p5-theme-src
│ └── scripts
│ ├── tpl
│ ├── search.html
│ ├── search_suggestion.html
│ └── list.html
│ └── .jshintrc
├── .travis.yml
├── src
├── webgl
│ ├── shaders
│ │ ├── vertexColor.frag
│ │ ├── normal.frag
│ │ ├── basic.frag
│ │ ├── vertexColor.vert
│ │ ├── immediate.vert
│ │ ├── normal.vert
│ │ └── light_texture.frag
│ └── interaction.js
├── math
│ └── polargeometry.js
└── .jshintrc
├── lib
└── .gitkeep
├── .gitignore
├── .jshintrc
└── .editorconfig
/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/unit/webgl/matrix.js:
--------------------------------------------------------------------------------
1 | //@TODO
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/test.json:
--------------------------------------------------------------------------------
1 | {
2 | "a": 1
3 | }
--------------------------------------------------------------------------------
/.jscsrc:
--------------------------------------------------------------------------------
1 | {
2 | "disallowTrailingWhitespace": true,
3 | "validateIndentation": 2
4 | }
5 |
--------------------------------------------------------------------------------
/test/unit/assets/acmesa.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/acmesa.ttf
--------------------------------------------------------------------------------
/test/unit/assets/object.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": 0,
3 | "species": "Panthera leo",
4 | "name": "Lion"
5 | }
--------------------------------------------------------------------------------
/test/unit/assets/target.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/target.gif
--------------------------------------------------------------------------------
/test/unit/assets/nyan_cat.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/nyan_cat.gif
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/test.xml:
--------------------------------------------------------------------------------
1 |
2 | - 1
3 | - 2
4 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Shape/test0/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 |
3 | }
4 |
5 | function draw() {
6 |
7 | }
--------------------------------------------------------------------------------
/test/unit/assets/renders/line.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/renders/line.png
--------------------------------------------------------------------------------
/test/unit/assets/renders/random.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/renders/random.png
--------------------------------------------------------------------------------
/test/unit/assets/renders/test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/renders/test.png
--------------------------------------------------------------------------------
/test/unit/assets/renders/test1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/renders/test1.png
--------------------------------------------------------------------------------
/test/unit/assets/renders/test2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/renders/test2.png
--------------------------------------------------------------------------------
/test/unit/assets/target_small.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/target_small.gif
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Bold.ttf
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/beat.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/beat.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/beat.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/beat.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/drum.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/drum.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/drum.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/drum.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/mask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/mask.png
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/mask2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/mask2.png
--------------------------------------------------------------------------------
/test/unit/assets/csv.csv:
--------------------------------------------------------------------------------
1 | name,age,height
2 | David,31,80
3 | "David, Jr.",11,61.5
4 | "David,
5 | Sr. ""the boss""",95,88
--------------------------------------------------------------------------------
/test/unit/assets/renders/ellipse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/unit/assets/renders/ellipse.png
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Avenir.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Avenir.otf
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Italic.ttf
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Regular.otf
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/beatbox.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/beatbox.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/beatbox.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/beatbox.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/bricks.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/bricks.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/doorbell.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/doorbell.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/doorbell.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/doorbell.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/fingers.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/fingers.mov
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/moonwalk.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/moonwalk.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/rockies.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/rockies.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/studio-b.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/studio-b.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/studio-b.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/studio-b.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/invalid.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | 'a':"foo"
4 | },
5 | {
6 | 'a':"bar"
7 | }
8 | ]
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/bx-spring.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/bx-spring.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/bx-spring.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/bx-spring.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/laDefense.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/laDefense.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/mammals.csv:
--------------------------------------------------------------------------------
1 | id,species,name
2 | 0,Capra hircus,Goat
3 | 1,Panthera pardus,Leopard
4 | 2,Equus zebra,Zebra
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_options/table.csv:
--------------------------------------------------------------------------------
1 | 0 Capra hircus Goat
2 | 1 Panthera pardus Leopard
3 | 2 Equus zebra Zebra
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/cat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Image/cat.jpg
--------------------------------------------------------------------------------
/test/manual-test-examples/tint/flowers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tint/flowers.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/bricks_third.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/bricks_third.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/small-plate.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/small-plate.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/small-plate.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/small-plate.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/acmesa.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/acmesa.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/pixel/unicorn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/pixel/unicorn.jpg
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "4.2"
4 | - "5.1"
5 | install: npm install
6 | script: npm run grunt
7 | sudo: false
8 |
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/concrete-tunnel.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/concrete-tunnel.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/concrete-tunnel.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/concrete-tunnel.ogg
--------------------------------------------------------------------------------
/src/webgl/shaders/vertexColor.frag:
--------------------------------------------------------------------------------
1 | precision mediump float;
2 | varying vec4 vColor;
3 | void main(void) {
4 | gl_FragColor = vColor;
5 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/env/cursor/banana.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/env/cursor/banana.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/unicorn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Image/unicorn.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/large-dark-plate.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/large-dark-plate.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/large-dark-plate.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/large-dark-plate.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/banana.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/loadingscreen/banana.png
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/mammals.csv:
--------------------------------------------------------------------------------
1 | id,species,name
2 | 0,Capra hircus,Goat
3 | 1,Panthera pardus,Leopard
4 | 2,Equus zebra,Zebra
--------------------------------------------------------------------------------
/test/manual-test-examples/mouse-events/fingers.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/mouse-events/fingers.mov
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/Lato-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/Lato-Black.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/running-cat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Image/running-cat.png
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/AvenirNextLTPro-Demi.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/AvenirNextLTPro-Demi.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/fingers.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.dom/fingers.mov
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/fingers.webm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.dom/fingers.webm
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_callback/table.csv:
--------------------------------------------------------------------------------
1 | id,species,name
2 | 0,Capra hircus,Goat
3 | 1,Panthera pardus,Leopard
4 | 2,Equus zebra,Zebra
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_preload/table.csv:
--------------------------------------------------------------------------------
1 | id,species,name
2 | 0,Capra hircus,Goat
3 | 1,Panthera pardus,Leopard
4 | 2,Equus zebra,Zebra
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/FiraSans-Book.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/FiraSans-Book.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/sprite_sheet.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Image/sprite_sheet.jpg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Damscray_DancingTiger.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Damscray_DancingTiger.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Damscray_DancingTiger.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Damscray_DancingTiger.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/test.txt:
--------------------------------------------------------------------------------
1 | I am a cat
2 | I like apples
3 | I have three feet
4 | I like my nose
5 | I smell like butter
6 | I talk like an orange
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/Inconsolata-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/Inconsolata-Bold.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/OpenSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/OpenSans-Regular.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/african-savanna.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Image/african-savanna.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/cat-with-alpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Image/cat-with-alpha.png
--------------------------------------------------------------------------------
/src/webgl/shaders/normal.frag:
--------------------------------------------------------------------------------
1 | precision mediump float;
2 | varying vec3 vVertexNormal;
3 | void main(void) {
4 | gl_FragColor = vec4(vVertexNormal, 1.0);
5 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/beat.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/beat.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/beat.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/beat.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/drum.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/drum.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/drum.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/drum.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadImage/global/test.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadImage/global/test.gif
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/Montserrat-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/Montserrat-Regular.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/SourceSansPro-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/SourceSansPro-Bold.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/LEFT.BL.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/LEFT.BL.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/LEFT.BL.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/LEFT.BL.lead.png
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_01.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_01.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_01.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_01.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_02.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_02.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_02.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/Damscray_-_Dancing_Tiger_02.ogg
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/lucky_dragons_-_power_melody.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/lucky_dragons_-_power_melody.mp3
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/lucky_dragons_-_power_melody.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/docs/yuidoc-p5-theme/assets/lucky_dragons_-_power_melody.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/beatbox.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/beatbox.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/beatbox.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/beatbox.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/global/acmesa.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadFont/global/acmesa.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/instance/acmesa.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadFont/instance/acmesa.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/instance/test.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadFont/instance/test.gif
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadImage/instance/test.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadImage/instance/test.gif
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/test.txt:
--------------------------------------------------------------------------------
1 | I am a cat
2 | I like apples
3 | I have three feet
4 | I like my nose
5 | I smell like butter
6 | I talk like an orange
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/SourceSansPro-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/SourceSansPro-Italic.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/SourceSansPro-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/SourceSansPro-Regular.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/LEFT.TOP.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/LEFT.TOP.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textAlignSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textAlignSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textLineSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textLineSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textSizeSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textSizeSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textWidthSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textWidthSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textWrapSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textWrapSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/LEFT.TOP.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/LEFT.TOP.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textAlignSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textAlignSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textLineSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textLineSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textSizeSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textSizeSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textWidthSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textWidthSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textWrapSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textWrapSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/dom_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/DOM-extensions/dom_1.png
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/dom_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/DOM-extensions/dom_5.png
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/dom_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/DOM-extensions/dom_7.png
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/dom_8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/DOM-extensions/dom_8.png
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/bx-spring.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/bx-spring.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/bx-spring.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/bx-spring.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/doorbell.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/doorbell.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/doorbell.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/doorbell.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/studio-b.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/studio-b.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/studio-b.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/studio-b.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/Merriweather-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/Merriweather-LightItalic.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/PlayfairDisplay-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/PlayfairDisplay-Regular.ttf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/LEFT.BOTTOM.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/LEFT.BOTTOM.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/LEFT.CENTER.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/LEFT.CENTER.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textOverlapSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textOverlapSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/LEFT.BOTTOM.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/LEFT.BOTTOM.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/LEFT.CENTER.lead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/LEFT.CENTER.lead.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textOverlapSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textOverlapSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/dom_2-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/DOM-extensions/dom_2-0.png
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/dom_2-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/DOM-extensions/dom_2-1.png
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/small-plate.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/small-plate.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/small-plate.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/small-plate.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/AvenirNextLTPro-Demi.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/loadingscreen/AvenirNextLTPro-Demi.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textAlignmentSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textAlignmentSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/material/texture/assets/cat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/webgl/material/texture/assets/cat.jpg
--------------------------------------------------------------------------------
/src/webgl/shaders/basic.frag:
--------------------------------------------------------------------------------
1 | precision mediump float;
2 | varying vec3 vVertexNormal;
3 | uniform vec4 uMaterialColor;
4 | void main(void) {
5 | gl_FragColor = uMaterialColor;
6 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/opentype/AvenirNextLTPro-Demi.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/opentype/AvenirNextLTPro-Demi.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/concrete-tunnel.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/concrete-tunnel.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/concrete-tunnel.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/concrete-tunnel.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/large-dark-plate.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/large-dark-plate.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/large-dark-plate.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/large-dark-plate.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/custom/textVertAlignmentSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/custom/textVertAlignmentSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/system/textAllAlignmentsSketch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/p5.Font/system/textAllAlignmentsSketch.png
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/material/texture/assets/UV_Grid_Lg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/webgl/material/texture/assets/UV_Grid_Lg.jpg
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/material/texture/assets/UV_Grid_Sm.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/webgl/material/texture/assets/UV_Grid_Sm.jpg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/lucky_dragons_-_power_melody.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.dom/lucky_dragons_-_power_melody.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/lucky_dragons_-_power_melody.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.dom/lucky_dragons_-_power_melody.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/material/texture/assets/UV_Grid_Med.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/webgl/material/texture/assets/UV_Grid_Med.jpg
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/global/SourceSansPro-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadFont/global/SourceSansPro-Regular.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/instance/SourceSansPro-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/async/loadFont/instance/SourceSansPro-Regular.otf
--------------------------------------------------------------------------------
/test/manual-test-examples/empty-example/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | // put setup code here
3 | createCanvas(600, 400);
4 | }
5 |
6 | function draw() {
7 | // put drawing code here
8 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/1/red.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/Integrating-other-libraries/1/red.jpg
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/2/red.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/Integrating-other-libraries/2/red.jpg
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/material/texture/assets/tiny_grid_@2X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/webgl/material/texture/assets/tiny_grid_@2X.png
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_01.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_01.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_01.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_01.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_02.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_02.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_02.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/Damscray_-_Dancing_Tiger_02.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/material/texture/assets/360video_256crop_v2.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/webgl/material/texture/assets/360video_256crop_v2.mp4
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme-src/scripts/tpl/search.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/lucky_dragons_-_power_melody.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/lucky_dragons_-_power_melody.mp3
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/_files/lucky_dragons_-_power_melody.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/addons/p5.sound/_files/lucky_dragons_-_power_melody.ogg
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/0/rhodes_loop.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/Integrating-other-libraries/0/rhodes_loop.wav
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/1/rhodes_loop.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/Integrating-other-libraries/1/rhodes_loop.wav
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/2/rhodes_loop.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bmoren/p5.js/HEAD/test/manual-test-examples/tutorials/Integrating-other-libraries/2/rhodes_loop.wav
--------------------------------------------------------------------------------
/lib/.gitkeep:
--------------------------------------------------------------------------------
1 | If you expected to see `p5.js`, `p5.min.js`, or other javascript files here, you probably need to run
2 |
3 | ```javascript
4 | grunt
5 | ```
6 |
7 | on the command line from the root directory of this project.
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case3/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 3
2 | // Only draw().
3 | // createCanvas() is called automatically with defaults.
4 | function draw() {
5 | ellipse(random(0, 400), random(0, 400), 50, 50);
6 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/capture_audio/sketch.js:
--------------------------------------------------------------------------------
1 | var capture;
2 |
3 | function setup() {
4 | createCanvas(390, 240);
5 | capture = createCapture(AUDIO);
6 | }
7 |
8 | function draw() {
9 | background(255);
10 |
11 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.DS_STORE
2 | .project
3 | node_modules/*
4 | experiments/*
5 | lib_old/*
6 | lib/p5.*
7 | lib/addons/p5.dom.min.js
8 | docs/reference/*
9 | docs/yuidoc-p5-theme/assets/js/reference.js*
10 | !*.gitkeep
11 | examples/3d/
12 | .idea
13 | .vscode
--------------------------------------------------------------------------------
/src/math/polargeometry.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = {
3 |
4 | degreesToRadians: function(x) {
5 | return 2 * Math.PI * x / 360;
6 | },
7 |
8 | radiansToDegrees: function(x) {
9 | return 360 * x / (2 * Math.PI);
10 | }
11 |
12 | };
13 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tint/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/docs/yuidoc-p5-theme/assets/mammals.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Goat
4 | Leopard
5 | Zebra
6 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/style/sketch.js:
--------------------------------------------------------------------------------
1 | var font;
2 |
3 | function preload() {
4 | font = loadFont("../acmesa.ttf");
5 | }
6 |
7 | function setup() {
8 | var myDiv = createDiv('hello there');
9 | myDiv.style('font-family', 'acmesa');
10 | }
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadJSON_options/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | noCanvas();
3 | loadJSON('http://api.openweathermap.org/data/2.5/station?id=5091',parseStuff,'json');
4 |
5 | }
6 |
7 | function parseStuff(data){
8 | console.log(data);
9 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/filter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/saving.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/pixel/set-pixels.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case1/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 1
2 | // Only setup().
3 | // setup() runs once and createCanvas() gets called automatically with defaults.
4 | function setup() {
5 | background(255, 0, 0);
6 | noStroke();
7 | ellipse(0, 0, 50, 50);
8 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/animate.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/copying.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/cropping.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/drawing.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Shape/test0/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/pixel/update-pixels.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadJSON_options/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadJSON_preload/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadXML_preload/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/manipulate.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/lights/ambientLight/sketch.js:
--------------------------------------------------------------------------------
1 | function setup(){
2 | createCanvas(windowWidth, windowHeight, WEBGL);
3 | }
4 |
5 | function draw(){
6 | background(0);
7 |
8 | ambientLight(150);
9 |
10 | ambientMaterial(250);
11 | sphere(50, 64);
12 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadImage/global/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadImage/instance/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadStrings_callback/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadStrings_preload/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case5/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 5
2 | // setup() and draw() with createCanvas().
3 | function setup() {
4 | createCanvas(400, 400);
5 | background(255, 255, 0);
6 | }
7 | function draw() {
8 | ellipse(random(0, 400), random(0, 400), 50, 50);
9 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case0/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/invalid_json.js:
--------------------------------------------------------------------------------
1 | var myJson;
2 |
3 | function preload() {
4 | myJson = loadJSON('invalid.json');
5 | }
6 |
7 | function setup(){
8 | createCanvas(300, 300);
9 | }
10 |
11 | function draw() {
12 | text(myJson[0].a, 10, 10);
13 | }
14 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/instance/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/audioelt_onended/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | audioEl = createAudio('../lucky_dragons_-_power_melody.mp3');
3 | audioEl.showControls(true);
4 | audioEl.onended(sayDone);
5 | }
6 |
7 | function sayDone(elt) {
8 | alert('done playing ' + elt.src );
9 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/mobile/sketch.js:
--------------------------------------------------------------------------------
1 | function setup(){
2 | createCanvas(windowWidth, windowHeight, WEBGL);
3 | }
4 |
5 | function draw(){
6 | background(250);
7 | normalMaterial();
8 | rotateX(accelerationX * 0.01);
9 | rotateY(accelerationY * 0.01);
10 | box(100, 100, 100);
11 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadFont/global/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case4/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 4
2 | // setup() and draw() without createCanvas().
3 | // createCanvas() is called automatically with defaults.
4 | function setup() {
5 | background(255, 0, 0);
6 | }
7 | function draw() {
8 | ellipse(random(0, 400), random(0, 400), 50, 50);
9 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_to_canvas/sketch.js:
--------------------------------------------------------------------------------
1 | var fingers;
2 |
3 | function setup() {
4 | createCanvas(400, 400);
5 | fingers = createVideo("../fingers.mov");
6 | fingers.loop();
7 | fingers.hide();
8 | }
9 |
10 | function draw() {
11 | background(150);
12 | image(fingers,10,10);
13 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp7/example_7_1.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 7-1: Defining a function
8 | var drawBlackCircle = function() {
9 | fill(0);
10 | ellipse(50,50,20,20);
11 | };
--------------------------------------------------------------------------------
/test/manual-test-examples/mouse-events/global-mousex/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | createCanvas(200, 200);
3 | ellipseMode(CENTER);
4 | }
5 |
6 | function draw() {
7 | background(125);
8 | console.log('mx:'+mouseX+' my:'+mouseY+' wmx:'+winMouseX+' wmy:'+winMouseY);
9 | ellipse(mouseX, mouseY, 20, 20);
10 | }
--------------------------------------------------------------------------------
/test/unit/assets/array.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 0,
4 | "species": "Capra hircus",
5 | "name": "Goat"
6 | },
7 | {
8 | "id": 1,
9 | "species": "Panthera pardus",
10 | "name": "Leopard"
11 | },
12 | {
13 | "id": 2,
14 | "species": "Equus zebra",
15 | "name": "Zebra"
16 | }
17 | ]
--------------------------------------------------------------------------------
/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "boss": true,
3 | "curly": true,
4 | "eqeqeq": true,
5 | "eqnull": true,
6 | "immed": true,
7 | "latedef": "nofunc",
8 | "newcap": false,
9 | "noarg": true,
10 | "quotmark": "single",
11 | "trailing": true,
12 | "undef": true,
13 | "unused": "vars",
14 |
15 | "node": true
16 | }
17 |
--------------------------------------------------------------------------------
/test/manual-test-examples/saveData/saveStrings/sketch.js:
--------------------------------------------------------------------------------
1 | // Example: saveStrings
2 | function setup() {
3 | var words = 'apple bear cat dog';
4 |
5 | // split outputs an array
6 | var list = split(words, ' ');
7 |
8 | // Writes the strings to a file, each on a separate line
9 | save(list, 'nouns.txt');
10 | }
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/keyboard/gamestyle.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/test/manual-test-examples/mouse-events/global-mousex-offset/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | var c = createCanvas(200, 200);
3 | c.position(100, 100);
4 | }
5 |
6 | function draw() {
7 | background(125);
8 | ellipse(mouseX, mouseY, 20, 20);
9 | console.log('mx:'+mouseX+' my:'+mouseY+' wmx:'+winMouseX+' wmy:'+winMouseY);
10 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/keyboard/keyIsPressed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/example_9_6.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 9-6: An array operation
8 |
9 | var values = [];
10 |
11 | for (var i = 0; i < 1000; i ++ ) {
12 | values[i] = values[i] * 2;
13 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/mouse-events/instance-mousex-css/sketch.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | var sketch = function(p) {
4 | p.setup = function() {
5 | p.createCanvas(300,300);
6 | p.background(200);
7 | }
8 | p.draw = function() {
9 | p.ellipse(p.mouseX, p.mouseY, 50, 50);
10 | }
11 | };
12 |
13 | var myp5 = new p5(sketch, 'canvas1');
14 |
15 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/saveTable/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | This example downloads a file. File download behavior depends on your browser.
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/saveData/saveStrings/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | This example downloads a file. File download behavior depends on your browser.
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/capture_video/sketch.js:
--------------------------------------------------------------------------------
1 | var capture;
2 |
3 | function setup() {
4 | createCanvas(320, 240);
5 | capture = createCapture(VIDEO);
6 | capture.size(320, 240);
7 | //capture.hide();
8 | }
9 |
10 | function draw() {
11 | background(255);
12 | image(capture, 0, 0, 320, 240);
13 | filter('INVERT');
14 | }
15 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/example_9_3.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 9-3: Initializing the elements of an array all at once
8 |
9 | var arrayOfInts = {1,5,8,9,4,5};
10 | var floatArray = {1.2,3.5,2.0,3.4123,9.9};
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/opentype/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/saveData/saveJSONArray/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | This example downloads a file. File download behavior depends on your browser.
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/saveData/saveJSONObject/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | This example downloads a file. File download behavior depends on your browser.
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/example_9_5.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 9-5: Using a for loop to initialize all elements of an array
8 |
9 | var values = [];
10 |
11 | for (var n = 0; n < 1000; n ++ ) {
12 | values[n] = random(0,10);
13 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/audioelt_onended/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadJSON_callback/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp10/example_10_1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/example_9_7.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 9-7: An array operation using dot length
8 |
9 | var values = [];
10 | values.length = 100;
11 |
12 | for (var i = 0; i < values.length; i ++ ) {
13 | values[i] = 0;
14 | }
15 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/svgpath/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case2/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 2
2 | // Only setup() and createCanvas().
3 | // setup() runs once and createCanvas() returns a pointer to the canvas created
4 | // with the input size, at 0,0. Holding the pointer is optional.
5 | function setup() {
6 | createCanvas(400, 400);
7 | background(255, 0, 0);
8 | noStroke();
9 | ellipse(0, 0, 50, 50);
10 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/example_9_4.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 9-4: Using a while loop to initialize all elements of an array
8 |
9 | var values = [];
10 |
11 | var n = 0;
12 | while (n < 1000) {
13 | values[n] = random(0,10);
14 | n = n + 1;
15 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/renderpath/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Image/saving-images.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | // frameRate(1);
3 | createCanvas(600, 600);
4 | background(200);
5 |
6 | var i = loadImage("unicorn.jpg", function(img){
7 | image(img, 10, 10);
8 |
9 | setTimeout(function(){
10 | console.log("Save image")
11 | save(img, "unicorn.jpeg");
12 | }, 1000);
13 |
14 | });
15 | }
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/webgl/shaders/vertexColor.vert:
--------------------------------------------------------------------------------
1 | attribute vec3 aPosition;
2 | attribute vec4 aVertexColor;
3 |
4 | uniform mat4 uModelViewMatrix;
5 | uniform mat4 uProjectionMatrix;
6 |
7 | varying vec4 vColor;
8 |
9 | void main(void) {
10 | vec4 positionVec4 = vec4(aPosition * vec3(1.0, -1.0, 1.0), 1.0);
11 | gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;
12 | vColor = aVertexColor;
13 | }
14 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp1/example_1_1.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // ported by Lauren McCarthy
6 |
7 | // Example 1-1: stroke and fill
8 |
9 | function setup(){
10 | createCanvas(200,200);
11 | background(255);
12 | };
13 |
14 | function draw(){
15 | stroke(0);
16 | fill(150);
17 | rect(50,50,75,100);
18 | };
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/invalid_json.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | P5.js - Invalid JSON test
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/trim/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig: http://EditorConfig.org
2 |
3 | # Top-most EditorConfig file
4 | root = true
5 |
6 | # Rules for JavaScript files:
7 |
8 | [*.js]
9 | # 2 space indentation
10 | indent_style = space
11 | indent_size = 2
12 | # No trailing spaces
13 | trim_trailing_whitespace = true
14 | # Unix-style newlines
15 | end_of_line = lf
16 | # Newline ending every file
17 | insert_final_newline = true
18 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/radio_test/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/findRows/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/getColumn/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/getObject/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/matchRow/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/matchRows/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/dropdown_test/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_options/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_preload/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Table/removeTokens/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/global/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_callback/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Open the console to view results
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/style/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/lights/pointLight/sketch.js:
--------------------------------------------------------------------------------
1 | function setup(){
2 | createCanvas(windowWidth, windowHeight, WEBGL);
3 | }
4 |
5 | function draw(){
6 | background(0);
7 |
8 | var locY = (mouseY / height - 0.5) * (-2);
9 | var locX = (mouseX / width - 0.5) *2;
10 |
11 | ambientLight(50);
12 | pointLight(250, 250, 250, locX, locY, 0);
13 |
14 | ambientMaterial(250);
15 | sphere(50, 64);
16 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/capture_audio/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/capture_video/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/input_button/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/slider_button/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/slider_tests/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/slider_tests/sketch.js:
--------------------------------------------------------------------------------
1 | var slider;
2 |
3 | function setup() {
4 |
5 | // create canvas
6 | canvas = createCanvas(200, 200);
7 |
8 | // create and position sliders
9 | slider = createSlider(0, 1, 0.5, 0.1);
10 |
11 | }
12 |
13 | function draw() {
14 | var b = slider.value();
15 | background(b*255);
16 | };
17 |
18 | function mousePressed() {
19 | slider.value(0);
20 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_button/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_circles/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_pixels/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_scrub/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_speed/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_to_canvas/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/brightness_mirror/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/capture_video_sizing/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_scrub/sketch.js:
--------------------------------------------------------------------------------
1 | var fingers;
2 | var slider;
3 |
4 | function setup() {
5 | noCanvas();
6 | fingers = createVideo('../fingers.mov', videoReady);
7 | }
8 |
9 | function videoReady() {
10 | var len = fingers.duration();
11 | slider = createSlider(0, len, 0, 0.1);
12 | slider.input(scrub);
13 | }
14 |
15 | function scrub() {
16 | fingers.time(slider.value());
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/test/manual-test-examples/webgl/lights/directionalLight/sketch.js:
--------------------------------------------------------------------------------
1 | function setup(){
2 | createCanvas(windowWidth, windowHeight, WEBGL);
3 | }
4 |
5 | function draw(){
6 | background(0);
7 |
8 | var dirY = (mouseY / height - 0.5) *2;
9 | var dirX = (mouseX / width - 0.5) *2;
10 |
11 | ambientLight(50);
12 | directionalLight(250, 250, 250, dirX, -dirY, 0.25);
13 |
14 | ambientMaterial(250);
15 | sphere(50, 64);
16 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/mouse-events/instance-mousex/sketch.js:
--------------------------------------------------------------------------------
1 | var sketch = function(p) {
2 |
3 | var c;
4 |
5 | p.setup = function() {
6 | p.createCanvas(200, 200);
7 | };
8 |
9 | p.draw = function() {
10 | p.background(125);
11 | p.ellipse(p.mouseX, p.mouseY, 20, 20);
12 | console.log('mx:'+p.mouseX+' my:'+p.mouseY+' wmx:'+p.winMouseX+' wmy:'+p.winMouseY);
13 | };
14 | };
15 |
16 | var myp5 = new p5(sketch);
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-global/case6/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 6
2 | // setup() and draw() with createCanvas(), holding pointer
3 | // parent call moves canvas to div with given id
4 | var canvas;
5 | function setup() {
6 | canvas = createCanvas(400, 400);
7 | canvas.parent('test');
8 | background(255, 255, 0);
9 | }
10 | function draw() {
11 | ellipse(random(0, 400), random(0, 400), 50, 50);
12 | //console.log(mouseX);
13 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/saveData/saveJSONObject/sketch.js:
--------------------------------------------------------------------------------
1 | var json;
2 |
3 | function setup() {
4 |
5 | json = {}; // new JSON Object
6 |
7 | json.id = 0;
8 | json.species = 'Panthera leo';
9 | json.name = 'Lion';
10 |
11 | save(json, 'lion.json');
12 | }
13 |
14 | // Sketch saves the following to a file called "lion.json":
15 | // {
16 | // "id": 0,
17 | // "species": "Panthera leo",
18 | // "name": "Lion"
19 | // }
20 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/DOM-extensions/0/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | HI THIS IS THE HEADER
9 |
10 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/audioEltSpotify/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_preload/sketch.js:
--------------------------------------------------------------------------------
1 | var table;
2 |
3 | function preload() {
4 | table = loadTable('table.csv', 'header');
5 | }
6 |
7 | function setup() {
8 | console.log(table);
9 | for (var i = 0; i < table.rows.length; i++) {
10 | for (var j = 0; j < table.columns.length; j++ ) {
11 | console.log(table.columns[j] +': '+ table.rows[i].getString(j) );
12 | }
13 | console.log('---');
14 | }
15 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/instantiation-instance/case0/sketch.js:
--------------------------------------------------------------------------------
1 | // CASE 0: no node specified
2 | // Canvas is auto-generated and appended to body.
3 |
4 | var sketch = function( p ) {
5 |
6 | var gray = 0;
7 |
8 | p.draw = function() {
9 | p.background(gray);
10 | p.rect(p.width/2, p.height/2, 50, 50);
11 | }
12 |
13 | p.mousePressed = function() {
14 | gray += 10;
15 | }
16 |
17 | };
18 |
19 | var myp5 = new p5(sketch);
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/0/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/manual-test-examples/tutorials/Integrating-other-libraries/2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.sound/micLevel/sketch.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Make some noise to float the ellipse
3 | */
4 |
5 | function setup() {
6 | createCanvas(400,400);
7 | mic = new p5.AudioIn();
8 | mic.start();
9 | }
10 |
11 | function draw() {
12 | background(0);
13 |
14 | // getLevel takes an optional smoothing value, or defaults to 0.0
15 | micLevel = mic.getLevel();
16 | ellipse(width/2, height - micLevel*height, 100, 100);
17 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/loadingscreen/preload_success_callbacks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | P5.js - preload with success callbacks
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/webgl/interaction.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var p5 = require('../core/core');
4 |
5 | //@TODO: implement full orbit controls including
6 | //pan, zoom, quaternion rotation, etc.
7 | p5.prototype.orbitControl = function(){
8 | if(this.mouseIsPressed){
9 | this.rotateY((this.mouseX - this.width / 2) / (this.width / 2));
10 | this.rotateX((this.mouseY - this.height / 2) / (this.width / 2));
11 | }
12 | return this;
13 | };
14 |
15 | module.exports = p5;
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/instance/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp1/example_1_2.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 1-2: noFill
8 | function setup(){
9 | createCanvas(200,200);
10 | smooth();
11 | background(255);
12 | // noFill() leaves the shape with only an outline.
13 | noFill();
14 | stroke(0);
15 | };
16 |
17 | function draw(){
18 | ellipse(60,60,100,100);
19 | };
--------------------------------------------------------------------------------
/test/manual-test-examples/learningprocessing/chp9/example_9_2.js:
--------------------------------------------------------------------------------
1 | // Learning Processing
2 | // Daniel Shiffman
3 | // http://www.learningprocessing.com
4 |
5 | // Ported by Lauren McCarthy
6 |
7 | // Example 9-2: Initializing the elements of an array one at a time
8 |
9 | var stuff = [];
10 | stuff[0] = 8; // The first element of the array equals 8
11 | stuff[1] = 3; // The second element of the array equals 3
12 | stuff[2] = 1; // The third element of the array equals 1
--------------------------------------------------------------------------------
/test/manual-test-examples/async/loadTable_options/sketch.js:
--------------------------------------------------------------------------------
1 | var table;
2 |
3 | function setup() {
4 | loadTable('table.csv', 'tsv', logResults);
5 | }
6 |
7 | function logResults(results) {
8 | table = results;
9 | console.log(table);
10 | for (var i = 0; i < table.rows.length; i++) {
11 | for (var j = 0; j < table.columns.length; j++ ) {
12 | console.log(table.columns[j] +': '+ table.rows[i].getString(j) );
13 | }
14 | console.log('---');
15 | }
16 | }
--------------------------------------------------------------------------------
/test/manual-test-examples/env/cursor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | P5.js - cursor(img)
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/manual-test-examples/p5.Font/pathpoints/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/test/manual-test-examples/mouse-events/instance-mousex-offset/sketch.js:
--------------------------------------------------------------------------------
1 | var sketch = function(p) {
2 |
3 | var c;
4 |
5 | p.setup = function() {
6 |
7 | c = p.createCanvas(200, 200);
8 | c.position(100, 100);
9 | };
10 |
11 | p.draw = function() {
12 | p.background(125);
13 | p.ellipse(p.mouseX, p.mouseY, 20, 20);
14 | console.log('mx:'+p.mouseX+' my:'+p.mouseY+' wmx:'+p.winMouseX+' wmy:'+p.winMouseY);
15 | };
16 | };
17 |
18 | var myp5 = new p5(sketch);
--------------------------------------------------------------------------------
/test/manual-test-examples/addons/p5.dom/video_pixels/sketch.js:
--------------------------------------------------------------------------------
1 | var fingers;
2 |
3 | function setup() {
4 | createCanvas(400, 400);
5 | fingers = createVideo("../fingers.mov");
6 | fingers.loop();
7 | fingers.hide();
8 | }
9 |
10 | function draw() {
11 | background(150);
12 |
13 | fingers.loadPixels();
14 | for (var i=0; i
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |