def scale(self, value): if not hasattr(value, "__getitem__"): self._scale = nps.vec2(value,value) else: self._scale = value
def scale(self, value): if not hasattr(value, "__getitem__"): self._scale = nps.vec2(value, value) else: self._scale = value
def __init__(self): self.position = nps.vec2(0,0) self.offset = nps.vec2(0,0) self.absoluteOffset = nps.vec2(0,0) self._scale = nps.vec2(1,1) self.angle = 0
def __init__(self): self.position = nps.vec2(0, 0) self.offset = nps.vec2(0, 0) self.absoluteOffset = nps.vec2(0, 0) self._scale = nps.vec2(1, 1) self.angle = 0