diff --git a/site/docs/guides/basic-drawing.md b/site/docs/guides/basic-drawing.md index 61c6652a..b46bc620 100644 --- a/site/docs/guides/basic-drawing.md +++ b/site/docs/guides/basic-drawing.md @@ -444,11 +444,11 @@ func pixel (x int, y int) { // Use the first DRAW_COLOR as the pixel color var palette_color = uint8(*w4.DRAW_COLORS & 0b1111) - if (palette_color == 0) { + if palette_color == 0 { // Transparent - return; + return } - var color = uint8((palette_color - 1) & 0b11); + var color = uint8((palette_color - 1) & 0b11) // Write to the framebuffer w4.FRAMEBUFFER[idx] = (color << shift) | (w4.FRAMEBUFFER[idx] &^ mask)