Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (9 sloc) 0.456 kB
An.object().named('Text').plural('Texts').from(Widget).has('color', 'rgb(0,0,0)').has('font', A.font('16px Arial')).has('content','').
does('init', function(text) { return this.clone().has('content', text).instance().here() }).
does('draw', function() {
if (!this.visible()) return;
Screen.save()
this.font().use()
Screen.as(this).color(this.color).print(this.toString()).restore()
}).
does('toString', function() { return ''.append(this.content()) })
Jump to Line
Something went wrong with that request. Please try again.