# Patsoptaas with canvas

**URL:** <https://discourse.ats-lang.org/t/patsoptaas-with-canvas/624>\
**Category:** Google Group\
**Created:** [October 14, 2014, 5:01pm UTC](https://discourse.ats-lang.org/t/patsoptaas-with-canvas/624 "2014-10-14T17:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [October 14, 2014, 5:01pm UTC](https://discourse.ats-lang.org/t/patsoptaas-with-canvas/624/1 "2014-10-14T17:01:17Z")

</div>

I added a canvas to Patsoptaas. However, you can write ATS code that draws  
on the canvas  
and then evaluate it on-line. Here is an example:

[http://atslangweb-postiats.rhcloud.com/SERVER/MYCODE/Patsoptaas\_serve.php?mycode\_url=https://raw.githubusercontent.com/githwxi/ATS-Postiats-contrib/master/projects/SMALL/JSclock/myclock1-2.dats](http://atslangweb-postiats.rhcloud.com/SERVER/MYCODE/Patsoptaas_serve.php?mycode_url=https://raw.githubusercontent.com/githwxi/ATS-Postiats-contrib/master/projects/SMALL/JSclock/myclock1-2.dats)

Please make sure that you tick the box to the right of the label  
’Evaluate-canvas’ at the bottom of the left column.

Cheers!
