I hereby claim:
- I am villares on github.
- I am villares (https://keybase.io/villares) on keybase.
- I have a public key ASCqsG5YCO-9G0HLAY2JBkQEyVFm2EC92l1M8HolasPBjAo
To claim this, I am signing this object:
| """ | |
| Exemplo mínimo de animação com variáveis globais | |
| para oficina de Processing modo Python | |
| """ | |
| TAMANHO = 20 # variáveis criadas fora do setup e draw são globais | |
| POS = 0 # posição inicial do círculo | |
| def setup(): | |
| size(500, 500) | 
| """ | |
| sketch 44b 180213 - Alexandre B A Villares | |
| https://abav.lugaralgum.com/sketch-a-day | |
| """ | |
| LIST = [] | |
| SRINK = .50 | |
| OFFSET = .25 | |
| SIZE = 512 # base size | |
| SAVE_FRAME = False | 
| """ | |
| Code by beesandbombs | |
| https://gist.github.com/beesandbombs/ca7f7a34b1c47b41724b9ca0f25fb07a | |
| kind of converted to Python Mode by Alexandre B A Villares (villares.github.io) | |
| """ | |
| mn, ia = .5 * sqrt(3), atan(sqrt(.5)) | |
| def ease(p, g=None): | |
| if g: | 
I hereby claim:
To claim this, I am signing this object:
| color wrong_orange = color(24, 100, 100); | |
| color get_orange(){ | |
| return color(24, 100, 100); | |
| } | |
| void setup(){ | |
| colorMode(HSB, 360, 100, 100); | |
| color correct_orange = get_orange(); | |
| background(116, 0, 13); | |
| size(200, 200, FX2D); | 
| """ | |
| A funny wobbling 3D grid - by Alexandre B A Villares (abav.lugaralgum.com) | |
| 1. install Processing (processing.org) | |
| 2. install Python Mode (isntructions on py.processing.org) | |
| 3. install PeasyCam library under Sketch...>Import Libray...>Add Library... | |
| """ | |
| add_library('peasycam') # Drag the mouse to orbit! | |
| add_library('gifAnimation') | 
| import pgzrun | |
| WIDTH = 500 | |
| HEIGHT = 500 | |
| BLACK = (0, 0, 0) | |
| WHITE = (255, 255, 255) | |
| def draw(): | |
| background(250) | 
| """ | |
| Exemplo de Perlin Noise em três dimensões | |
| """ | |
| perlinScale = 0.02 | |
| z = 0 | |
| def setup(): | |
| size(500, 500) # define o tamanho da tela em pixels. Largura X Altura | |
| noStroke() | 
| """ | |
| Under Creative Commons License | |
| https:#creativecommons.org/licenses/by-sa/4.0/ | |
| Ported for Processing Python Mode py.processing.org <- for Processing IDE | |
| by Alexandre Villares abav.lugaralgum.com, 9-Oct-2018 | |
| Based upon code for p5js.org at https://jcponce.github.io/misc/lotusrosettes.html | |
| by Juan Carlos Ponce Campuzano, 9-Oct-2018 | |
| Based upon Dan Anderson's code | |
| https:#www.openprocessing.org/sketch/519299 | |
| """ | 
| /// based on https://www.openprocessing.org/sketch/569346?fbclid=IwAR1wNsmuYDfyoA5mVmy10x5tYHUq5wvDNaqqNNkfdcA-Q71ryD7LQp4_q1E | |
| float[][] z1, v1, z2, v2; | |
| /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| void setup() { | |
| size(800, 800); | |
| colorMode(RGB, 2); | |
| background(1, 1, 2); |