(a, b, t)
| 196 | } |
| 197 | |
| 198 | function mix (a, b, t) { |
| 199 | return (1.0 - t) * a + t * b; |
| 200 | } |
| 201 | |
| 202 | //the texture is always updated to be (paintingWidth x paintingHeight) x resolutionScale |
| 203 | function Snapshot (texture, paintingWidth, paintingHeight, resolutionScale) { |