Skip to content

Commit

Permalink
cleaning fractal circle
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Jun 12, 2024
1 parent 7846fcf commit ae640f5
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
example
exampleSimpleFractalCircle

<script>
| c space |
c := MfFractalCircleElement new.
c setValue: 100.
space := BlSpace new.
space root layout: BlFlowLayout horizontal.
c transformDo: [ :c | c translateBy: 200 @ 150 ].
space toTheme: MfMooflodTheme new.
space root addChild: c.
space show.
^ c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
initialization
circleExtent

^ 390 @ 390
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
internal
createCircle: x y: anY

| c |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
internal
createCircle: x y: anY color: aColor

| c color |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
accessing
nbOfChilds
numberOfCircles

^nbOfChilds

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
as yet unclassified
public api
setValue: aValue

(aValue between: 0 and: 100) ifTrue: [ self value: aValue ]
ifFalse: [ self value: 100 ].
(aValue between: 0 and: 100)
ifTrue: [ value := aValue ]
ifFalse: [ value := 100 ].
nbOfChilds := value / 4.
self updateCircles
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
internal
updateCircles

| c |
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ testIfCirclesAreAddedCorrectly
circle := MfFractalCircleElement new.
circle setValue: 80.
"Increment the circles in the widget each 4% incrementation"
self assert: circle nbOfChilds equals: 20.
self assert: circle numberOfCircles equals: 20.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ testNothingAddedIfValueIsTooHigh
circle setValue: 108.
"The fractal circle works with percentage, so value is set to max if too high"
self assert: circle value equals: 100.
self assert: circle nbOfChilds equals: 25.
self assert: circle numberOfCircles equals: 25.
Empty file.

This file was deleted.

11 changes: 0 additions & 11 deletions Mooflod.package/MfFractalCircleExamples.class/properties.json

This file was deleted.

2 changes: 1 addition & 1 deletion Mooflod.package/MfPatternElementSkin.class/properties.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commentStamp" : "",
"super" : "ToRawSkin",
"super" : "MfBasicMooflodSkin",
"category" : "Mooflod-PatternWidget",
"classinstvars" : [ ],
"pools" : [ ],
Expand Down

0 comments on commit ae640f5

Please sign in to comment.