Return intersection between 2 list
Return difference between 2 list
Change the function signature to pass new variable.
Convert a tuple string into tuple, with some security check. Designed to be used with eval() function
a = (12, 54, 68)
b = str(a) # return '(12, 54, 68)'
c = strtotuple(b) # return (12, 54, 68)
Transform from hex string color to kivy color
Returns a random color (4 tuple)
Parameters : |
|
---|
Return true if alpha channel is 0
Limit a value between a minvalue and maxvalue
This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emitted the first time the function is used.
Bases: list
List with clear() method
Warning
Usage of iterate() function will decrease your performance.
Interpolate a value to another. Can be useful to smooth some transition. For example
# instead of setting directly
self.pos = pos
# use interpolate, and you'll have a nice transition
self.pos = interpolate(self.pos, new_pos)
Warning
This interpolation work only on list/tuple/double with the same dimension. No test are done if the dimension is not the same.