This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup() { | |
| size(400, 400); | |
| frameRate(5); | |
| } | |
| void draw() { | |
| background(0); | |
| stroke(255); | |
| raio(width/2, 0, 10); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Recursive lightning | |
| // Raio recursivo | |
| void setup() { | |
| size(400, 400); | |
| frameRate(2); | |
| } | |
| void draw() { | |
| background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Delaunay Triangulation & Convex Hull | |
| // by Justin Dailey | |
| // https://www.openprocessing.org/sketch/62502# | |
| class Face | |
| { | |
| // The three points of the face | |
| PVector[] ps; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '''From Coding Train | |
| https://youtu.be/BAejnwN4Ccw | |
| 3/2/2017 | |
| Added Genetic Algorithm | |
| 4/27/2017 | |
| ''' | |
| import random | |
| cities = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter | |
| from time import strftime | |
| #by Luciano Ramalho | |
| clock = tkinter.Label() | |
| clock.pack() | |
| clock['font'] = 'Helvetica 120 bold' | |
| clock['text'] = strftime('%H:%M:%S') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| * Listing files in directories and subdirectories | |
| * inspired by an example by Daniel Shiffman. | |
| * | |
| * 1) List the names of files in a directory | |
| * 2) List the names along with metadata (size, lastModified) | |
| * of files in a directory | |
| * 3) List the names along with metadata (size, lastModified) | |
| * of files in a directory and all subdirectories (using recursion) | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def setup(): | |
| """ Create a Bandeirinha instance """ | |
| global flag | |
| size(100, 100) # Canvas size | |
| flag = Bandeirinha(width / 2, height / 2) | |
| def draw(): | |
| """ The 'main loop' invoked by Processing """ | |
| background(0) # Cleans the canvas, with black | |
| flag.plot() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Traduzido do exemplo Getting Started with Capture (Processing.org) | |
| * Reading and displaying an image from an attached Capture device. | |
| */ | |
| import processing.video.*; | |
| Capture cam; | |
| void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <!-- PLEASE NO CHANGES BELOW THIS LINE (UNTIL I SAY SO) --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/p5.js"></script> | |
| <script language="javascript" type="text/javascript" src="p5js_madness_tetrahedrons.js"></script> | |
| <!-- OK, YOU CAN MAKE CHANGES BELOW THIS LINE AGAIN --> | |
| <!-- This line removes any default padding and style. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Python template for creating a looping animation in Processing.py. | |
| When you press the 'F' key, this program will export a series of images | |
| into a "frames" directory located in its sketch folder. | |
| These can then be combined into an animated gif. | |
| Known to work with Processing 3.3.6 | |
| Prof. Golan Levin, January 2018 | |
| """ | |
| #=================================================== | |
| # Global variables. |