class Kame::Remocon::Opal::Canvas
Public Instance Methods
get_context(type)
click to toggle source
# File lib/kame/remocon/opal/canvas.rb, line 8 def get_context(type) Context.new `#@native.getContext(type)` end
image_data()
click to toggle source
# File lib/kame/remocon/opal/canvas.rb, line 12 def image_data `#@native.toDataURL()`.sub(/^.*,/, "") end