Log In  

The extended color bits to specify the fill pattern are applied to the next draw command.

There is no way to remove the fill pattern by specifying a draw command color unless fillp() is called.

    circfill(64,64,20,0x114e.abcd)  
    -- expected: solid white
        -- actual: 0xabcd pattern is applied
    circfill(32,45,12,7)

Example cart:

Cart #53676 | 2018-06-21 | Code ▽ | Embed ▽ | No License

P#53677 2018-06-21 15:02 ( Edited 2018-06-22 16:21)

You'd need to tell the API to change the fill pattern to solid by setting the high nybble to 1, e.g.

circfill(32,45,12,0x1007)

Otherwise it uses the existing pattern, which was set by the previous circfill(), as usual.

P#53697 2018-06-22 07:44 ( Edited 2018-06-22 11:48)

Ok - got it (the doc is a bit confusing, as I am actually setting the ‘use pattern’ bit to zero :/)

P#53699 2018-06-22 12:21 ( Edited 2018-06-22 16:21)

[Please log in to post a comment]