# Drawing with rails

**URL:** <https://www.ruby-forum.com/t/drawing-with-rails/72882>\
**Category:** Rails\
**Created:** [October 19, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/drawing-with-rails/72882 "2006-10-19T17:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [October 19, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/drawing-with-rails/72882/1 "2006-10-19T17:32:46Z")

</div>

I was just wondering if anyone had any experience drawing images with  
rails. I know this isn’t rails per se but I have come to really enjoy  
posting in this forum.

So far I have found to different systems for achieving what I need to  
do.

SVG:

> **[SVG In HTML Introduction - SVG: Scalable Vector Graphics | MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_In_HTML_Introduction)**
>
> This article and its associated example shows how to use inline SVG.

and

Canvas:  
[http://developer.mozilla.org/en/docs/Canvas\_tutorial:Basic\_usage](http://developer.mozilla.org/en/docs/Canvas_tutorial:Basic_usage)

Has anyone used these systems?  
Any got ideas about drawing with code?

---

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [November 19, 2006, 6:36am UTC](https://www.ruby-forum.com/t/drawing-with-rails/72882/2 "2006-11-19T06:36:09Z")

</div>

Hey Stewart,

I too am looking into this… I found that the SVG approach seems to be  
more standards based and more widely supported… But I haven’t got too  
far yet… If you’ve made any progress here, would you post back with  
how you proceeded?

---

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [November 19, 2006, 6:59am UTC](https://www.ruby-forum.com/t/drawing-with-rails/72882/3 "2006-11-19T06:59:36Z")

</div>

Stewart wrote:

> I was just wondering if anyone had any experience drawing images with  
> rails. I know this isn’t rails per se but I have come to really enjoy  
> posting in this forum.
> 
> So far I have found to different systems for achieving what I need to  
> do.
> 
> SVG:  
> [SVG In HTML Introduction - SVG: Scalable Vector Graphics | MDN](http://developer.mozilla.org/en/docs/SVG_In_HTML_Introduction)
> 
> and
> 
> Canvas:  
> [http://developer.mozilla.org/en/docs/Canvas\_tutorial:Basic\_usage](http://developer.mozilla.org/en/docs/Canvas_tutorial:Basic_usage)
> 
> Has anyone used these systems?  
> Any got ideas about drawing with code?

Neither of which are very widely supported. Your best bet is probably  
RMagick since it generates image any browser can display.

---

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [November 19, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/drawing-with-rails/72882/4 "2006-11-19T20:02:28Z")

</div>

You may be able to use x3d if you want 3d stuff.

There should be a way you can get it to read an xml file.

smil [http://www.w3.org/](http://www.w3.org/) may also be a good one if you want animated  
stuff. Again you should be able to get it to read an xml file
