# Paintable Canvas Hacks

**URL:** <https://forum.inductiveautomation.com/t/paintable-canvas-hacks/85437>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 8, 2024, 3:25pm UTC](https://forum.inductiveautomation.com/t/paintable-canvas-hacks/85437 "2024-02-08T15:25:06Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [May 1, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/paintable-canvas-hacks/85437/9 "2024-05-01T14:29:47Z")

</div>

**Gaming Applications:**

I was showing off the paintable canvas to my son and simultaneous showing him some practical applications for the vector math he was studying in trigonometry class. Things probably got a little carried away, and Bananas! was born. The whole game is rendered by a single paintable canvas, so there are a lot of cool hacks in there: slider controls, switches, buttons, animations, etc.

> [@Introducing Bananas!](https://forum.inductiveautomation.com/t/introducing-bananas/89767):
>
> A single or multiplayer video game for Vision. To Play: Select whether each player will be a robot or a human. Select how many victories are required to win the game, and adjust the gravity if desired. Finally, click the 'Start Game' button. Object of the game: Hit the other monkey with a banana by adjusting the angle and velocity of the throw. The game can be played with a single player, two players, or it's also possible to make both players virtual and just watch the monkeys fight it out. …

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/3/b381dcec18a6080c0cebb751f1b879f0e13e403d.png)

I had already constructed some of the ground work this a couple of years ago when I made this post:

> [@Add script to dynamically created objects](https://forum.inductiveautomation.com/t/add-script-to-dynamically-created-objects/64215/15):
>
> Just for fun:

That code includes moving dynamically created shapes around inside a canvas with a mouse, and it has various animation concepts such as momentum, reflection, etc.

---

_[View the full topic](https://forum.inductiveautomation.com/t/paintable-canvas-hacks/85437)._
