Old Lines project

This commit is contained in:
Xevion
2019-10-17 13:29:23 -05:00
parent 261f05cee2
commit 4291b89d08
3 changed files with 19 additions and 1 deletions

View 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)

View File

@@ -0,0 +1,2 @@
mode=Python
mode.id=jycessing.mode.PythonMode

View File

@@ -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. - **FlipFlopChain** - A simple project displaying how one would count in binary.
- **Graph-Theory** - A simple project closely mimicing the particle.js library. - **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.