? IBLUR (Instant Blur!) ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Another contest? You asked for it!

IBLUR (Instant Blur!)

First there was GBLUR (very slow) Then QBLUR (faster, but still slow) Now I have created IBLUR! Just run this function once to instantly blur everything on screen. It uses transparent sprites, so you only need to run it once and it will update automatically! DEF IBLUR R SPPAGE 0 FOR X=-R TO R FOR Y=-R TO R I=SPSET(0,0,400,240,1) SPOFS I,X,Y SPCOLOR I,RGB(256/(ABS(X)+ABS(Y)+1),255,255,255) NEXT NEXT ENDSyntax: IBLUR radius Caution: using a high radius can cause extreme lag/low FPS You can use SPCLIP to control the blur area (I might add a better way to do that later)
Author
12Me21
Updated
Rating
3 votes
Categories
Keywords
  • blur
  • instant
  • sprites
  • transparent
5 Comment(s) ColeslawProductions ColeslawProductions I like this! The blur isn't as good as QBLUR, but it's really nice having a blur that works in real-time! 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself thanks! I think I'll work on an updated version that looks a little better (still not as good as G/QBLUR, of course) and maybe a little less laggy randomous randomous Power User Robot Hidden Easter Eggs Second Year My account is over 2 years old Website Drawing I like to draw! Hobbies >instant >extreme lag Excuse me, sir. 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Well the command runs almost instantly but it creates a lot of sprites, causing SB to run slowly afterwards (if the radius is big) randomous randomous Power User Robot Hidden Easter Eggs Second Year My account is over 2 years old Website Drawing I like to draw! Hobbies Oh, I see. Carry on then, sir.