The Trunk: Balloon-ct.36.mcz

[email protected] Sun, 28 Jun 2026 22:49:51 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Christoph Thiede uploaded a new version of Balloon to project The Trunk:
http://source.squeak.org/trunk/Balloon-ct.36.mcz

==================== Summary ====================

Name: Balloon-ct.36
Author: ct
Time: 29 June 2026, 12:49:51.141212 am
UUID: 8098ea70-0d3a-4709-8d83-fd7ee0dbc42b
Ancestors: Balloon-eem.35

Fixes typo and adds second example for GradientFillStyle.

=============== Diff against Balloon-eem.35 ===============

Item was changed:
  ----- Method: GradientFillStyle class>>colors: (in category 'instance creation') -----
  colors: colorArray
+ 	"(self colors: {Color green. Color red}) origin: 50@0; direction: 150@150"
  	"Create a gradient fill style from an array of equally spaced colors"
  	^self ramp: (colorArray withIndexCollect:
  		[:color :index| (index-1 asFloat / (colorArray size - 1 max: 1)) -> color]).!

Item was changed:
  ----- Method: GradientFillStyle class>>sample (in category 'instance creation') -----
  sample
+ 	"GradientFillStyle sample"
- 	"GradientFill sample"
  	^(self ramp: { 0.0 -> Color red. 0.5 -> Color green. 1.0 -> Color blue})
  		origin: 300 @ 300;
  		direction: 400@0;
  		normal: 0@400;
  		radial: true;
  	yourself!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]