Just do following script in latest squeak-dev image with UI
enhancements installed. World fillStyle: ( CompositeFillStyle fillStyles: { BitmapFillStyle fromForm: ( (Form extent: 1@2 depth: 32) colorAt: 0@0 put: (Color transparent) ; colorAt: 0@1 put: (Color gray)). World fillStyle. }) 2 Gary Chambers: quite confused why style listed last drawn first? As for me it is more logical to fill in order of appearance in code, not in reverse.. or i missing something? -- Best regards, Igor Stasenko AKA sig. _______________________________________________ UI mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/ui |
For the order, I think at the time I was optimising for the #is... methods, being that the topmost is considered first. Not sure is makes much difference to be fair though...
Regards, Gary. > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]]On Behalf Of Igor Stasenko > Sent: 23 May 2008 10:44 PM > To: Squeak's User Interface; The general-purpose Squeak developers list > Subject: [UI] Composite fill styles in action (or what to do when you > bored). > > > Just do following script in latest squeak-dev image with UI > enhancements installed. > > > World fillStyle: ( > CompositeFillStyle fillStyles: { > BitmapFillStyle fromForm: ( > (Form extent: 1@2 depth: 32) colorAt: 0@0 put: (Color transparent) ; > colorAt: 0@1 put: (Color gray)). > World fillStyle. > }) > > > 2 Gary Chambers: quite confused why style listed last drawn first? > As for me it is more logical to fill in order of appearance in code, > not in reverse.. > or i missing something? > > -- > Best regards, > Igor Stasenko AKA sig. > _______________________________________________ > UI mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/ui > _______________________________________________ UI mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/ui |
Also it matches the order of submorphs in Morphic...
> -----Original Message----- > From: [hidden email] > [mailto:[hidden email]]On Behalf Of Gary Chambers > Sent: 27 May 2008 9:52 AM > To: Squeak's User Interface > Subject: RE: [UI] Composite fill styles in action (or what to do when > youbored). > > > For the order, I think at the time I was optimising for the > #is... methods, being that the topmost is considered first. Not > sure is makes much difference to be fair though... > > Regards, Gary. > > > -----Original Message----- > > From: [hidden email] > > [mailto:[hidden email]]On Behalf Of Igor Stasenko > > Sent: 23 May 2008 10:44 PM > > To: Squeak's User Interface; The general-purpose Squeak developers list > > Subject: [UI] Composite fill styles in action (or what to do when you > > bored). > > > > > > Just do following script in latest squeak-dev image with UI > > enhancements installed. > > > > > > World fillStyle: ( > > CompositeFillStyle fillStyles: { > > BitmapFillStyle fromForm: ( > > (Form extent: 1@2 depth: 32) colorAt: 0@0 put: (Color transparent) ; > > colorAt: 0@1 put: (Color gray)). > > World fillStyle. > > }) > > > > > > 2 Gary Chambers: quite confused why style listed last drawn first? > > As for me it is more logical to fill in order of appearance in code, > > not in reverse.. > > or i missing something? > > > > -- > > Best regards, > > Igor Stasenko AKA sig. > > _______________________________________________ > > UI mailing list > > [hidden email] > > http://lists.squeakfoundation.org/mailman/listinfo/ui > > > > _______________________________________________ > UI mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/ui > _______________________________________________ UI mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/ui |
In reply to this post by Igor Stasenko
Another fun alternative:
World fillStyle: ( CompositeFillStyle fillStyles: { (GradientFillStyle colors: {Color white alpha: 0.1. Color black alpha: 0.5}) origin: 0@0; direction: 0@ Display height. (GradientFillStyle colors: {Color paleGreen. Color blue}) origin: 0@0; direction: Display width@0 }) Gary :-) > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]]On Behalf Of Igor Stasenko > Sent: 23 May 2008 10:44 PM > To: Squeak's User Interface; The general-purpose Squeak developers list > Subject: [UI] Composite fill styles in action (or what to do when you > bored). > > > Just do following script in latest squeak-dev image with UI > enhancements installed. > > > World fillStyle: ( > CompositeFillStyle fillStyles: { > BitmapFillStyle fromForm: ( > (Form extent: 1@2 depth: 32) colorAt: 0@0 put: (Color transparent) ; > colorAt: 0@1 put: (Color gray)). > World fillStyle. > }) > > > 2 Gary Chambers: quite confused why style listed last drawn first? > As for me it is more logical to fill in order of appearance in code, > not in reverse.. > or i missing something? > > -- > Best regards, > Igor Stasenko AKA sig. > _______________________________________________ > UI mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/ui > _______________________________________________ UI mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/ui |
Free forum by Nabble | Edit this page |