mirror of
https://github.com/Xevion/processing-projects.git
synced 2025-12-06 03:16:04 -06:00
Old Lines project
This commit is contained in:
14
other/Old_Lines/Old_Lines.pyde
Normal file
14
other/Old_Lines/Old_Lines.pyde
Normal file
@@ -0,0 +1,14 @@
|
||||
def setup():
|
||||
size(500, 500)
|
||||
|
||||
arr = []
|
||||
def draw():
|
||||
global arr
|
||||
print(len(arr))
|
||||
|
||||
buffersize = 100
|
||||
arr.insert(0, (mouseX, mouseY))
|
||||
if len(arr) > buffersize:
|
||||
arr = arr[:buffersize]
|
||||
oldx, oldy = (arr[-1])
|
||||
line(oldx, oldy, mouseX, mouseY)
|
||||
2
other/Old_Lines/sketch.properties
Normal file
2
other/Old_Lines/sketch.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
mode=Python
|
||||
mode.id=jycessing.mode.PythonMode
|
||||
@@ -17,3 +17,5 @@ Other sketches without any specific purpose. If enough fit into a specific categ
|
||||
- **FlipFlopChain** - A simple project displaying how one would count in binary.
|
||||
|
||||
- **Graph-Theory** - A simple project closely mimicing the particle.js library.
|
||||
|
||||
- **Old_Lines** - A short script connecting your current mouse position to that of yours moments ago.
|
||||
Reference in New Issue
Block a user