Skip to content

Commit

Permalink
index
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed May 6, 2024
1 parent 09b93e5 commit 12af6b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Chapters/bloc/BlocForPharoByExample13Book.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ Let's design a bloc element to roll a die.
Clicking on it will display the values of all sides of the die in a quick loop,
and another click will stop the animation.

![The die in bloc](figures/die.png)
![The die in bloc](figures/die.png width=30)

%![The die in Morphic](/figures/die.png width=30&label=fig:dialogDie)

Expand Down Expand Up @@ -632,7 +632,7 @@ DieMorph >> drawPointAt: aPoint

%![A new die 6 with `(BlDie faces: 6) openInNewSpace`](/figures/die6.png width=25&label=fig:die6+)

![(BlDie faces: 6) openInNewSpace](figures/die6.png)
![(BlDie faces: 6) openInNewSpace](figures/die6.png width=30)

To change the displayed face, we create an accessor that
we can use as `myDie dieValue: 5`:
Expand All @@ -650,7 +650,7 @@ DieMorph >> dieValue: aNumber

%![Result of `(BlDie faces: 6) openInNewSpace; dieValue: 5`.](/figures/die.png width=30&label=fig:dieValue5)

![(BlDie faces: 6) openInNewSpace; dieValue: 5](figures/die5.png)
![(BlDie faces: 6) openInNewSpace; dieValue: 5](figures/die5.png width=30)

Now we will use the animation system to show quickly all
the face. Add this in the `initialize` method.
Expand Down
12 changes: 7 additions & 5 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<!inputFile|path=Chapters/bloc/blocStack.md!>

#Low - Level: Alexandrie and Harfuzz
<!inputFile|path=Chapters/Alexandrie/alexandrie.md!>
<!inputFile|path=Chapters/Alexandrie/text_harfbuzz.md!>

# Bloc: A graphics framework

Expand All @@ -17,15 +14,20 @@
<!inputFile|path=Chapters/toplo/widget_creation.md!>
<!inputFile|path=Chapters/toplo/stylesheet.md!>

#Low - Level: Alexandrie and Harfuzz
<!inputFile|path=Chapters/Alexandrie/alexandrie.md!>
<!inputFile|path=Chapters/Alexandrie/text_harfbuzz.md!>


#Old libraries

<!inputFile|path=Chapters/Athens/Athens.md!>

# For other books: Pharo by Example 12

%to do a pass
<!inputFile|path=Chapters/bloc/BlocForPharoByExample13Book.md!>



# For a booklet on Pharo low level graphics
<!inputFile|path=Chapters/graphicsfoundation/bitmapFormDisplay.md!>
<!inputFile|path=Chapters/graphicsfoundation/colorandDepth.md!>
Expand Down

0 comments on commit 12af6b2

Please sign in to comment.