Hey all. I have been playing with different scaling modes and quite often there is space around the actual content that is blank. I have figured out how to get the dimensions of the space that needs filling but I'm not sure which is the best method to actually fill it. The three methods I have thought of are..
1. Create a 1x1 pixel bitmap and scale it to fill the space.
2. Create a mesh and fill it with the desired color.
3. Create a shape filled with the desired color.
So I am wondering which method is best. Is it a case of one being vastly superior to the others? Currently I'm using method 1 because it is by far the easiest to implement. What do you all use?
One thing that springs to mind while I think of this is the fantastic Copper co-processor from Amiga days. Making horizontal color splits down the screen was so easy. Having something like that in Gideros would be great.
Comments
I don't know if it will be faster to define the size as the screen size or as a 1x1 and scale it to the screen size.
Likes: antix
https://deluxepixel.com
Likes: simwhi
The bitmap method is good because I just make a 1 pixel bitmap from the top left of the atlas for the top bit and another bitmap using the pixel from the bottom right of the atlas. This gives the correct color for each horizontal slice.
Pixel will be cool but then I would have to save more information in my parallax files.
I suppose I could draw the pixel to a RenderTarget and then get the pixel color to use for the pixel object but then the code gets larger, hmm.
@pie, if the top area and bottom areas are different colors then that wouldn't work. See attached picture where content is inside the red rectangle and outside is OverScan area and the top and bottom areas need to be different colors
Likes: pie