[squeak-dev] Alternative Background

Bert Freudenberg bert at freudenbergs.de
Wed Mar 24 10:31:17 UTC 2010


On 24.03.2010, at 04:49, Michael van der Gulik wrote:
> 
> We don't need no stinkin' JPEG!

+1

> World fillStyle: ((GradientFillStyle
> 	ramp: { 0.0 -> Color white darker. 0.2 -> Color gray. 0.8 -> Color black })
> 	origin: 200 at 30;
> 	direction: Display extent;
> 	radial: true;
> 	yourself).


You could even create that interactively - but something is broken in trunk for setting the World's gradient colors. Switching to a radial gradient and setting origin and direction works fine.

- Bert -





More information about the Squeak-dev mailing list