Using setProps() to set properties on a list of items

We just added setProps() to Tile, Wrapper, LabelLetters, LabelWords, LabelOnPath, LabelOnArc. And a general CODE function setProps(). Thanks @pettis and @josephd for the thoughts on this.

new LabelLetters("We can now set properties on items")
    .pos(0,50,CENTER)
    .setProps({color:series(pink,blue)});

new LabelWords({color:yellow})
	.sca(1.5)
	.center()
	.mov(0,-50)
	.setProps({
		rotation:{min:10,max:20,negative:true},
		font:["verdana", "courier"]
	});

new Tile().sca(.5).pos(0,50,CENTER,BOTTOM).setProps({color:[red,orange,blue]});

4 Likes

WOW! so smart!

1 Like