You've already forked AiraPulsar
Incomplete improvement (Anchor object)
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
from vgl.main import *
|
||||
import pygame
|
||||
import time
|
||||
|
||||
class Line(Element):
|
||||
def __init__(self, ends = [(0.1, 0.1), (0.2, 0.2)], color = "#ffffff"):
|
||||
self.color = color
|
||||
self.ends = ends
|
||||
def set_color(self, new_color):
|
||||
self.color = new_color
|
||||
def move(self, delta, duration):
|
||||
self.add_task(group = "move", start_time = Aux.gettime(), duration = duration, delta = delta)
|
||||
def update(self):
|
||||
|
||||
Reference in New Issue
Block a user