News:

Welcome to RetroCoders Community

Main Menu

RbgaBox Biaxial Mosaic

Started by CharlieJV, Sep 09, 2023, 03:50 PM

Previous topic - Next topic

Lucidapogee

#1
This is what loads on my end.

I noticed you have a blogspot. That worked well and looks nice.

CharlieJV

Ah, I don't use mobile devices.  Looks like you can't access the Reddit website without installing an app?  That sucks.

Here's copy/paste from the reddit:

This program tests the RbgaBox library statement in the [development version of BASIC Anywhere Machine](https://bam-ide.tiddlyhost.com/).

* [Run the program](https://basicanywheremachine.neocities.org/sample_programs/RbgaBox%20Biaxial%20Mosaic.prod.run)
* [View the source code](https://basicanywheremachine.neocities.org/sample_programs/RbgaBox%20Biaxial%20Mosaic.prod.bas)

Lucidapogee

Thank you. It was doing it to me on XP too.

So, the rgba is for opacity. That would make a cool cloud effect on a top down game.

CharlieJV

Quote from: Lucidapogee on Sep 10, 2023, 12:08 AMThank you. It was doing it to me on XP too.

So, the rgba is for opacity. That would make a cool cloud effect on a top down game.

My primary compatibility mission is GW-BASIC, QB64 a secondary mission.  And with both of those missions, I'm kind of catching QBasic as a side-benefit.

To implement alpha-blending (is that the right word?  Maybe I'm confused about alpha-blending vs opacity) in a QB64 way, I'd have to make a major overhaul to wwwBASIC.  Bleurk.

So instead, I'm creating libraries with Rgba* statements as alternatives to the standard PSET, LINE, CIRCLE (no javascript coding, rather pretty much standard BASIC code (minimal BAM-specific BASIC) in these libraries.

Oh yeah for sure, once I have the libraries and functions all well-organized, we'll be able to do some good stuff.

Already, in the development version of BAM, the RgbaPset, RgbaLine, and RgbaBox are pretty powerful.

Next: RgbaCircle.

Then, after I create a proper "Polygon" function in a library: RgbaPolygon.

Rock'n roll !

ZXDunny

The real trick is to not visit any pixel more than once. I have a very, very fast polygon rasteriser but damn it's annoying to modify because of that reason :)

CharlieJV

Quote from: ZXDunny on Sep 10, 2023, 09:02 AMThe real trick is to not visit any pixel more than once. I have a very, very fast polygon rasteriser but damn it's annoying to modify because of that reason :)

I've got this idea I want to implement first, just to get the danged thing out of my head because it is gnawing at me something silly.  Then, if I can manage to not get distracted by the goofiest thing, I'm gonna want to look at your code.  Well, I also have to study some code by bplus that is equal to QB64's "_MAPTRIANGLE", which I don't understand at all after reading about it a few times on the QB64PE wiki.

Whatever I do, it is going to have to be BASIC code.  I do not feel at all like doing anything in javascript.  I need a break from that.