Example #1
0
	def scale(self, value):
		if not hasattr(value, "__getitem__"):
			self._scale = nps.vec2(value,value)
		else:
			self._scale = value
Example #2
0
 def scale(self, value):
     if not hasattr(value, "__getitem__"):
         self._scale = nps.vec2(value, value)
     else:
         self._scale = value
Example #3
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
Example #4
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