kopia lustrzana https://github.com/villares/sketch-a-day
17deque
rodzic
994fb185a4
commit
267b0cbbe1
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 1.6 MiB |
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
import collections as c;s=255;h=c.deque([(0,0)],s)
|
||||
def setup():size(s*2,s*2);noStroke();colorMode(3)
|
||||
def draw():background(51);[(fill(i,s,s,s/2),circle(x,y,i/5))for i, (x, y) in enumerate(h)];h.append(h.popleft())
|
||||
def mouseDragged():h.append((mouseX,mouseY))#つぶやきProcessing
|
||||
|
||||
def mouseReleased():print(len(h))
|
||||
|
|
@ -19,6 +19,12 @@
|
|||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[sketch_2020_09_17deque](https://github.com/villares/sketch-a-day/tree/master/2020/sketch_2020_09_17deque) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[sketch_2020_09_16a_deque_randomwalk](https://github.com/villares/sketch-a-day/tree/master/2020/sketch_2020_09_16a_deque_randomwalk) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue