Skip to content

Commit

Permalink
Use new stroke* Alexandrie API
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Jan 30, 2025
1 parent a47b10c commit d810f60
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions SDLExperiments-Demo/AnimatedCirclesDemo.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -355,19 +355,16 @@ AnimatedCirclesDemo >> prepareSceneWindow [
anElement position: from + (relativeTo * amount) ];
renderBlock: [ :cairoContext |
cairoContext
sourceColor: (isAnimated
ifTrue: [ Color random: random ]
ifFalse: [ initialColor ]);
sourceColor:
(isAnimated
ifTrue: [ Color random: random ]
ifFalse: [ initialColor ]);
translateByX: padding y: padding;
lineWidth: lineWidth;
lineCap: AeCairoCapStyle square;
dash: (AeFFIDoubleArray
newFrom: { 0. (lineWidth*2) })
offset: 0;
strokeSize: lineWidth;
strokeCap: AeCairoStrokeCap square;
strokeDashPattern: { 0. lineWidth * 2 };
circleRadius: circleRadius;
stroke ]
]

stroke ] ]
]

{ #category : #running }
Expand Down

0 comments on commit d810f60

Please sign in to comment.