Skip to content

Commit

Permalink
Improve examples for judicious after the new debug mode
Browse files Browse the repository at this point in the history
Prefer red over blue and avoid showing an empty graphic.
  • Loading branch information
lucach committed Nov 28, 2024
1 parent 42eea88 commit 16fb9d3
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions docs/examples-pytamaro.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"code": "show_graphic(circular_sector(100, 120, blue))"
},
{
"code": "show_graphic(circular_sector(100, 120, blue), True)",
"code": "show_graphic(circular_sector(100, 120, red), True)",
"usesOptional": true
}
]
Expand All @@ -199,7 +199,10 @@
"name": "empty_graphic",
"examples": [
{
"code": "show_graphic(empty_graphic())"
"code": "print(graphic_width(empty_graphic()))"
},
{
"code": "print(graphic_height(empty_graphic()))"
}
]
},
Expand All @@ -218,10 +221,10 @@
"name": "text",
"examples": [
{
"code": "show_graphic(text('PyTamaro', 'Fira Sans', 32, blue))"
"code": "show_graphic(text('PyTamaro', 'Fira Sans', 32, red))"
},
{
"code": "show_graphic(text('PyTamaro', 'Ubuntu', 32, blue), True)",
"code": "show_graphic(text('PyTamaro', 'Ubuntu', 32, red), True)",
"usesOptional": true
}
]
Expand All @@ -230,13 +233,13 @@
"name": "triangle",
"examples": [
{
"code": "show_graphic(triangle(100, 100, 60, blue))"
"code": "show_graphic(triangle(100, 100, 60, red))"
},
{
"code": "show_graphic(triangle(100, 100, 120, blue))"
"code": "show_graphic(triangle(100, 100, 120, red))"
},
{
"code": "show_graphic(triangle(100, 100, 120, blue), True)",
"code": "show_graphic(triangle(100, 100, 120, red), True)",
"usesOptional": true
}
]
Expand All @@ -245,71 +248,71 @@
"name": "top_left",
"examples": [
{
"code": "show_graphic(pin(top_left, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(top_left, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "top_center",
"examples": [
{
"code": "show_graphic(pin(top_center, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(top_center, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "top_right",
"examples": [
{
"code": "show_graphic(pin(top_right, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(top_right, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "center_left",
"examples": [
{
"code": "show_graphic(pin(center_left, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(center_left, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "center",
"examples": [
{
"code": "show_graphic(pin(center, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(center, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "center_right",
"examples": [
{
"code": "show_graphic(pin(center_right, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(center_right, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "bottom_left",
"examples": [
{
"code": "show_graphic(pin(bottom_left, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(bottom_left, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "bottom_center",
"examples": [
{
"code": "show_graphic(pin(bottom_center, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(bottom_center, ellipse(100, 50, red)), True)"
}
]
},
{
"name": "bottom_right",
"examples": [
{
"code": "show_graphic(pin(bottom_right, ellipse(100, 50, blue)), True)"
"code": "show_graphic(pin(bottom_right, ellipse(100, 50, red)), True)"
}
]
},
Expand Down Expand Up @@ -349,7 +352,7 @@
"name": "pin",
"examples": [
{
"code": "show_graphic(pin(top_right, rectangle(50, 50, blue)), True)",
"code": "show_graphic(pin(top_right, rectangle(50, 50, red)), True)",
"usesOptional": true
}
]
Expand Down

0 comments on commit 16fb9d3

Please sign in to comment.