|
I was wondering if all the functionalities of the Pen class are likely to be implemented at some point in the future. I see that a lot of methods are not working yet at the moment. In particular the setShadow method would be nice to have. Now I am hacking a, not so nice looking, shadow the following way: // CREATES A SIMPLE SHADOW EFFECT ( w = Window.new.front; w.view.background_(Color.white); w.drawFunc = { 6.do{ |i| // set the Color Pen.color = Color.grey(0.3, 0.15); Pen.addRect( Rect(20 + (i/1.5), 20 + (i/1.5), 40, 40) ); Pen.fill; Pen.fillColor = Color.white; Pen.strokeColor = Color.black; Pen.width = 0.2; Pen.addRect(Rect(19,19,40,40)); Pen.fillStroke } }; w.refresh; ) Does someone perhaps know a better way to create nicer looking shadows? |