Resizes this 2D point by a scale of scalex and scaley, then moves the point by translatex and translatey.
(point)
| 169 | |
| 170 | |
| 171 | def transformPoint(point): |
| 172 | """Resizes this 2D point by a scale of scalex and scaley, then moves |
| 173 | the point by translatex and translatey.""" |
| 174 | return (int(point[X] * SCALEX + TRANSLATEX), |
| 175 | int(point[Y] * SCALEY + TRANSLATEY)) |
| 176 | |
| 177 | |
| 178 | def displayFireflies(lightPoints, darkPoints): |