Class: Kame::Remocon::Opal::Canvas
- Inherits:
-
Object
- Object
- Kame::Remocon::Opal::Canvas
- Includes:
- Native
- Defined in:
- lib/kame/remocon/opal/canvas.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#get_context(type) ⇒ Object
8 9 10 |
# File 'lib/kame/remocon/opal/canvas.rb', line 8 def get_context(type) Context.new `#@native.getContext(type)` end |
#image_data ⇒ Object
12 13 14 |
# File 'lib/kame/remocon/opal/canvas.rb', line 12 def image_data `#@native.toDataURL()`.sub(/^.*,/, "") end |