While waiting for my sci.10-1 Teacher to arrive, I was fooling around with putting sprites and colors over a Camera Sprite, and found the Blur Effect and others shown here:
function setup()
cameraSource(CAMERA_BACK)
print("Effect 1: Blur\
Made by: CodeaNoob")
print("Effect 2: Shadow\
Used Cargo-Bot Background fade sprite")
print("Effect 3: Security Camera\
Created by: CodeaNoob")
print("Effect 4: Normal\
Normal Camera")
print("Press Restart to flip the Camera\
WARNING! Cannot be undone until closed.")
parameter.integer("CameraSelect",1,4)
end
function draw()
Time = os.date("%c")
if CameraSelect == 1 then
pushStyle()
tint(255, 255, 255, 60)
sprite(CAMERA,WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
end
if CameraSelect == 2 then
popStyle()
pushStyle()
sprite(CAMERA,WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
sprite("Cargo Bot:Background Fade",WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
end
if CameraSelect == 3 then
popStyle()
pushStyle()
sprite(CAMERA,WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
rectMode(CENTER)
fill(0, 0, 0, 255)
rect(50,750,90,30)
rect(625,25,243,30)
font("Inconsolata")
fontSize(20)
fill(255, 255, 255, 255)
text("Camera 1",50,750)
text(Time,625,25)
if displayMode() == FULLSCREEN then
sprite(CAMERA,WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
rectMode(CENTER)
fill(0, 0, 0, 255)
rect(50,750,90,30)
rect(900,25,243,30)
fill(255, 255, 255, 255)
text(Time,900,25)
fill(255, 255, 255, 255)
text("Camera 1",50,750)
end
end
if CameraSelect == 4 then
popStyle()
pushStyle()
sprite(CAMERA,WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
end
end