Update Corrected index.rst (#4507)

The previous yaml code had errors which I corrected here. It may not be all the errors. I did not test tall the code on the page.

Co-authored-by: Gary Rubin <gary@hopworks.com>
This commit is contained in:
Jesse Hills 2024-12-18 08:44:18 +13:00 committed by GitHub
parent f39ceef59d
commit 38ef9407c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,10 +127,10 @@ Now that you know a bit more about ESPHome's coordinate system, let's draw some
// Ring and half-ring. First draw the circle with a hole in it
// at [75,75] with inner raduis of 20 and outer of 30
id.filled_ring(75, 75, 30, 20);
it.filled_ring(75, 75, 30, 20);
// and a "gauge": half-ring that is partially filled.
// Same position and size but 80% filled left to right
id.filled_gauge(75, 75, 30, 20, 80)
it.filled_gauge(75, 75, 30, 20, 80);
// Triangles... Let's draw the outline of a triangle from the [x,y] coordinates of its three points
// [25,5], [100,5], [80,25]