Skip to content

Instantly share code, notes, and snippets.

View neilfranci's full-sized avatar
🏠
Working from home

Neil Franci neilfranci

🏠
Working from home
  • undefined
  • undefined
  • 06:36 (UTC +07:00)
View GitHub Profile
@neilfranci
neilfranci / draw_history.gd
Last active May 26, 2023 04:20
A gdscript that use _draw() with @tool and timer and history variable to draw a line from left to right that remember last line instead of remove and draw a new line every _draw() call
@tool
extends Control
var history := [
Vector2(10, 10),
Vector2(10, 500),
Vector2(20, 10),
Vector2(20, 500),
]