Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:49 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : weird problem with pixel fill

Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 393
Posted: 03:50pm 02 Nov 2023
Copy link to clipboard 
Print this post

I have encountered a strange problem with pixel fill. This saved image shows the problem.

I start with a white screen.
I create the image by drawing the 4-sided polygon, then drawing the solid black circles. Then I do pixel fill x, y, rgb(red) at the pixel that is marked with the small green square. (the green square is drawn AFTER the fill.) As you can see, the large polygon constrains the fill so that it does not escape into the outside of the polygon, but it somehow does fill the lower half of the polygon, leaking past the totally opaque black circles.

Is this a bug? I am running firmware version 5.07.00b26 on a CMM2 Gen 2.

-B

ill
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 05:03pm 02 Nov 2023
Copy link to clipboard 
Print this post

More information and a program needed to diagnose. Simple test is OK on 5.07.02b9?
cls rgb(white)
box 100,100,100,100,1,rgb(black)
line 100,100,200,200,1,rgb(black)
pixel fill 150,154,rgb(red)
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 393
Posted: 06:24pm 02 Nov 2023
Copy link to clipboard 
Print this post

Well, Bozo was in the room when I encountered this problem. D'oh! It was a simple bug in my code where I put the fill call in the wrong place. Once I fixed my code, it runs exactly the way I wanted it to, with only the top half being filled.

Sorry to pester you, Peter!
-Bill
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024