LoginLogin
Might make SBS readonly: thread

GBLUR

Root / Submissions / [.]

AveryCreated:
Download:43X4TD
Version:1.1.0Size:1.5KB
NOTE: I've found that Lego_meister made an even better blurring algorithm which is 12x more efficient. Go check it out! QBLUR This program contains a DEF block that blurs a defined area of a GRP. Future Plans โ—Blur with a natural circle instead of a square. โ—Dither between displayable colors to compensate for lack of color resolution.

Instructions:

Running the program as-is blurs a pre-defined area of the screen. Copy the DEF block into any other program to use GBLUR like a normal command. Syntax: GBLUR Start point X, Start point Y, End point X, End point Y, Blur Radius Optional variable: MAXGBLURTIME= Amount of time given to GBLUR in 60th's of a second. If "0"/undefined, GBLUR takes all of the time it needs to render full resolution.

Notes:

Changelog Version 1.0.0 (N32ERE13) โ— Initial release. Version 1.1.0 (5A33W3G4) โ— Updated to work properly with 512x512 GRP screens. Version 1.1.1 (43X4TD) โ— Fixed a program-breaking syntax error.

Very cool! What algorithm does it use to blur?

Love it! Good stuff!

This is really cool! Can you make one for BG and Sprites?

Replying to:haloopdy
Very cool! What algorithm does it use to blur?
Every pixel is averaged with pixels around it in a square. I also made it square the values while averaging because I think it's supposed to make it more accurate.

Replying to:haloopdy
Very cool! What algorithm does it use to blur?
Nice; at least you're doing it the fast way for SmileBASIC. I thought you might have gone crazy and done a Gaussian blur >.<

Replying to:blizord
This is really cool! Can you make one for BG and Sprites?
Sprites and BGs use graphic pages 4 and 5 respectively, so it already does BG and sprites. You just have to call GPAGE before using it.

Replying to:blizord
This is really cool! Can you make one for BG and Sprites?
Badger me so I make it work on 512x512.

This is so cool!

Replying to:haloopdy
Very cool! What algorithm does it use to blur?
Urk, I wrote an image convolution function. If anyone wants it you can have it whatever

Replying to:PetitProfessor
Love it! Good stuff!
Thank you!

Replying to:haloopdy
Very cool! What algorithm does it use to blur?
I would like to see it.

I turned the amount of time it can take to a very high level and kept it running, It looked amazing.

Replying to:haloopdy
Very cool! What algorithm does it use to blur?
Urk, I wrote an image convolution function. If anyone wants it you can have it whatever
I would like to see it.
So would I.

Neat.

This is really cool. :)