Sha256: 8c616a196c8e20d25ac39a8bc1ad5654f7c94da4398207c0858c59eaad70a34a
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
motion_require '../draw.rb' module MotionPrime class LabelDrawElement < DrawElement def draw_in(rect) color = computed_options[:text_color] color.uicolor.set if color computed_options[:text].to_s.drawAtPoint( CGPointMake(computed_left, computed_top), withFont: computed_options[:font] ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.1.1 | motion-prime/elements/draw/label.rb |