Skip to content

Commit

Permalink
Rename sends to sourceColorRGB: and sourceColorRGBA: to sourceColor:
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Sep 21, 2023
1 parent 8d6baff commit b62a329
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/BlocBenchs-Alexandrie/AeBenchFigure.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ AeBenchFigure >> drawOn: aCairoContext [
ifNotNil: [ aCairoContext appendPath: cachedPath ].

aCairoContext
sourceColorRGBA: fillColor;
sourceColor: fillColor;
fillPreserve.

aCairoContext
sourceColorRGBA: strokeColor;
sourceColor: strokeColor;
stroke.

aCairoContext
Expand Down
6 changes: 3 additions & 3 deletions src/BlocBenchs-FPS/PCBoxWindmillCompositingWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ PCBoxWindmillCompositingWindow >> resetAnimation [

]

{ #category : #initialization }
{ #category : #accessing }
PCBoxWindmillCompositingWindow >> resetMainTexture [

mainTextureStrategy := PCUpdateStaticTextureStrategy
Expand All @@ -82,9 +82,9 @@ PCBoxWindmillCompositingWindow >> resetMainTexture [

mainTextureStrategy cairoContextDo: [ :aeCairoContext |
aeCairoContext
sourceColorRGBA: Color black;
sourceColor: Color black;
paint.
].

self resetAnimation.
self resetAnimation
]
4 changes: 2 additions & 2 deletions src/BlocBenchs-FPS/PCBoxWindmillWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ PCBoxWindmillWindow >> drawBoxOn: aeCairoContext [

"draw background"
aeCairoContext
sourceColorRGBA: case boxColor;
sourceColor: case boxColor;
fillPreserve.

"draw border"
aeCairoContext
sourceColorRGBA: case boxBorderColor;
sourceColor: case boxBorderColor;
lineWidth: case boxBorderWidth;
stroke.

Expand Down
2 changes: 1 addition & 1 deletion src/BlocBenchs-FPS/PCCleanCanvasWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PCCleanCanvasWindow >> clearCairoSurface [
"Clear background (https://www.cairographics.org/FAQ/#clear_a_surface)"

cairoContext
sourceColorRGB: canvasClearColor;
sourceColor: canvasClearColor;
paint

]
Expand Down
4 changes: 2 additions & 2 deletions src/BlocBenchs-FPS/PCCompositionEnabledViaSDLWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ PCCompositionEnabledViaSDLWindow >> resetTopLayer [

]

{ #category : #drawing }
{ #category : #hook }
PCCompositionEnabledViaSDLWindow >> step [

self stepAnimation.
Expand All @@ -52,7 +52,7 @@ PCCompositionEnabledViaSDLWindow >> step [

bottomLayerTexture cairoContextDo: [ :aeCairoContext |
aeCairoContext
sourceColorRGB: backgroundColorGenerator next;
sourceColor: backgroundColorGenerator next;
paint ].
sdlRenderer copy: bottomLayerTexture sdlTexture.

Expand Down
2 changes: 1 addition & 1 deletion src/BlocBenchs-FPS/PCCompositionWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PCCompositionWindow >> drawFiguresOn: aeCairoContext [
height: case figureExtent y.

aeCairoContext
sourceColorRGB: (figureColors at: index);
sourceColor: (figureColors at: index);
fill

]
Expand Down
6 changes: 3 additions & 3 deletions src/BlocBenchs-FPS/PCNestedTransformationsWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ PCNestedTransformationsWindow >> drawOnCairoCanvasFigureAt: index [
y: 0.0
width: case figureExtent x
height: case figureExtent y;
sourceColorRGB: (backgroundColors at: index);
sourceColor: (backgroundColors at: index);
fill.


]

{ #category : #drawing }
{ #category : #stepping }
PCNestedTransformationsWindow >> drawOnCairoSurface [

"Prepare on first draw"
Expand All @@ -65,7 +65,7 @@ PCNestedTransformationsWindow >> drawOnCairoSurface [

"Clear surface"
cairoContext
sourceColorRGB: windowColor;
sourceColor: windowColor;
paint.

"Draw each figure"
Expand Down
2 changes: 1 addition & 1 deletion src/BlocBenchs-FPS/PCPolylinesCachingWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PCPolylinesCachingWindow >> drawOnCairoSurface [
cairoContext
translateBy: case offsetBetweenFigures;
appendPath: path;
sourceColorRGB: (colors at: index);
sourceColor: (colors at: index);
stroke ].

cairoContext
Expand Down
2 changes: 1 addition & 1 deletion src/BlocBenchs-FPS/PCTranslatingPathsWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ PCTranslatingPathsWindow >> setPathFor: index deltaY: deltaY [
{ #category : #drawing }
PCTranslatingPathsWindow >> setSourceFor: index [

cairoContext sourceColorRGB: (colors at: index)
cairoContext sourceColor: (colors at: index)
]
4 changes: 2 additions & 2 deletions src/BlocBenchs-SDL/SDLShapedWindowExample.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ SDLShapedWindowExample class >> surfaceWithRoundedCornersExtent: extent [
format: AeCairoSurfaceFormat argb32.

cairoSurface newContext
sourceColorRGBA: Color transparent;
sourceColor: Color transparent;
paint;
sourceColorRGB: Color black;
sourceColor: Color black;
roundedRectangleTo: extent radius: extent min / 3;
fill.

Expand Down

0 comments on commit b62a329

Please sign in to comment.