You have a lot of unused imports and button handler. Also, Kolibri's API supports rectangle drawing: #13
You have a lot of unused imports and button handler. Also, Kolibri's API supports rectangle drawing: [#13](https://git.kolibrios.org/KolibriOS/kolibrios/src/branch/main/kernel/branches/Kolibri-A/trunk/docs/sysfuncs.txt#L455-L468)
Strange, my rust-analyzer isn't warning me about unused imports. Also didn't know there was a rectangle API. Guess drawing a line would be redundant too then. Would a circle be better then? Or remove the example entirely?
Strange, my rust-analyzer isn't warning me about unused imports. Also didn't know there was a rectangle API. Guess drawing a line would be redundant too then. Would a circle be better then? Or remove the example entirely?
Strange, my rust-analyzer isn't warning me about unused imports.
The rectangle API can't invert colors though. My example does show the color inversion working.
Oh, I see. Then can you replace L42-L46 with rectangle drawing? It'll be cool
> Strange, my rust-analyzer isn't warning me about unused imports.

> The rectangle API can't invert colors though. My example does show the color inversion working.
Oh, I see. Then can you replace [L42-L46](https://git.kolibrios.org/Rust/Core/src/commit/27ea16d17128ddddc6521c4e31268f410cd51067/examples/sqr.rs#L42-L46) with rectangle drawing? It'll be cool
Ok let me write a better example. I admit the square example was kind of low effort. I'm thinking a wall of text and a button to invert the colors to show off a kind of basic dark mode.
Ok let me write a better example. I admit the square example was kind of low effort. I'm thinking a wall of text and a button to invert the colors to show off a kind of basic dark mode.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Mini PR to help out my GSoC app a bit and just for funsies.
You have a lot of unused imports and button handler. Also, Kolibri's API supports rectangle drawing: #13
Strange, my rust-analyzer isn't warning me about unused imports. Also didn't know there was a rectangle API. Guess drawing a line would be redundant too then. Would a circle be better then? Or remove the example entirely?
The rectangle API can't invert colors though. My example does show the color inversion working.
Oh, I see. Then can you replace L42-L46 with rectangle drawing? It'll be cool
@@ -39,6 +39,12 @@ pub fn define_window(start: Dot, size: Size, params: WindowParams<'_>) {}}pub fn put_pixel(pos: Dot, color: Option<Color>, invert: Option<bool>) {And
invert's type better to replace with just bool, 'cuz anyway there are 2 options:NoneorSome(true)Hm, there are two another options: draw a pixel with given color or invert, so better do inversion if
coloris nullYa I like this
Ok let me write a better example. I admit the square example was kind of low effort. I'm thinking a wall of text and a button to invert the colors to show off a kind of basic dark mode.