Mioplanet Lab
Research & Development
SEARCH
     Home | MioScript Experimentation | Squared

  Topics
Multimedia Experimentation
MioScript Experimentation
Software Experimentation
Robotics
Finger Driven Applications
Musical Gadgets
Miscellaneous

  MioScript Experimentation
Valse
Robot Mouse
Digital Jewel
Flying Onion
Waves
DigiCater
Bee
Squared
Magnificator
MioClock
Flying Notes
Mio Jackpot
Magic Carpet
Falling Pooh
Timer

Squared


 A full screen animation.

Squared
Mioplanet Lab - Research & Development

Move the mouse to add an effect.

Right click to close. 



Try squared.exe


 You can download and try the application.
This application is a prototype and some features may not work as expected on your computer.

 
 
Filesquared.exe
Size520 Kb
PlatformWindows 98, ME, NT4, 2000, XP, Vista
Start Download Now
Safe Download



Download Source Code


 The full source code is provided as a Mio Archive File.
With MioFactory, you can open this archive file, edit the source code and test the result.

 
 
Filesquared.mioa
Size36 Kb
FormatMioFactory Archive File
Start Download Now
 



MioScript Source Code

 MioScript is a scripting language aimed to create any kind of applications.
A free version of MioFactory is available to compile MioScript applications. 



 identity.k 


event.load
      extern.close("{APP_NAME}") // Only one instance allowed
      app.init("{APP_ID}", "{APP_NAME}", "{APP_VERSION}", "{APP_BUILD}", "{CREATE_LOG}")
      
      app.booster(true)
      
      &Width = screen.width()
      &Height = screen.height()
      
      window.main.autoClose(true, true)
      draw.main.rect(0, 0, &width, &height, num.rgb(100, 100, 100))
      draw.main.paint()
      window.main.pos.now(0, 0, &Width, &Height)
      
      &AnimID = window.main.create(true)
      window.&AnimID.movable(false)
      window.&AnimID.pos.now(0, 0, &width, &height)
      window.&AnimID.autoClose(false, false)
      draw.&AnimID.rect(0, 0, &Width*2, &Height*2, 0)

      // Brush
      &Brush = Brush.load(Path.Rsc("BrushMed.bmp"))
      &Small = Brush.load(Path.Rsc("BrushvMed.bmp"))
      &mio = Brush.load(Path.Rsc("logo.bmp"))

      doEvent.TimerBrush()
event.end

event.terminate
      screen.resolution.restore()
event.end

event.mouse:right:click
      app.close()
event.end

function.Brush:Load(&Filename)
      &Brush@ID = draw.mem.create()
      draw.&Brush@ID.load(&Filename)
      return(&Brush@ID)
function.end

event.TimerBrush
      &Pos = time.tick.get() / 500
      Animate()
      draw.&AnimID .paint()
      doEvent.TimerBrush()
event.end

function.Animate()
      &a = &Pos/20
      &d = num.sin(&pos/10, 8)+18
      draw.&AnimID.copyFrom.&AnimID(0, 0, &width, &height/2, 1, -&d, &width, &height/2)
      draw.&AnimID.copyFrom.&AnimID(0, &height/2, &width, &height/2, 1, &height/2+&d, &width, &height/2)

      draw.&AnimID.copyFrom.&AnimID(0, 0, &width/2, &height, -&d, 0, &width/2, &height)
      draw.&AnimID.copyFrom.&AnimID(&width/2, 0, &width/2, &height, &width/2+&d, 0, &width/2, &height)

      &x = num.cos(&a, num.sin(&a/3, 10))
      &y = num.sin(&a, num.cos(&a/2, 5))

      &x = num.cos(&pos*120, 8)+num.sin(&pos*200, 8)
      &y = num.sin(&pos*80, 8)+num.cos(&pos*100, 8)
      &color = num.rgb(num.sin(&a, 100)+100, num.sin(&a/2, 100)+100, num.sin(&a*2, 100)+100)
      draw.&AnimID.brushFrom.&Brush(0, 0, draw.&Brush.width(), draw.&Brush.height(), &Width/2 + &x - 50,   &Height/2 + &y - 50, &color, 15)
      draw.&AnimID.brushFrom.&Brush(0, 0, draw.&Brush.width(), draw.&Brush.height(), &width/2-35+num.cos(&pos*2, 60),   &height/2-35+num.sin(&pos*2, 60), num.rgb(0, 0, 0), 5)
      draw.&AnimID.brushFrom.&Brush(0, 0, draw.&Brush.width(), draw.&Brush.height(), mouse.x()-35,   mouse.y()-35, num.rgb(0, 0, 0), 15)      

      &x = num.cos(&pos/7+&ptr*2, 30) + num.cos(&pos/3+&ptr, 5)
      &y = num.sin(&pos/5+&ptr, 30) + num.sin(&pos/2+&ptr*2, 5)
      draw.&AnimID.brushFrom.&small(0, 0, draw.&Small.width(), draw.&Small.height(), &Width/2 + &x - 17,   &height/2 + &y - 17, num.rgb(255, 255, 255), 15)      
function.end





In the same topic


 
MioScript Experimentation
Mioplanet Lab - Research & Development
MioScript Experimentation
Various applications created to experiment and improve MioScript.

Bee
Mioplanet Lab - Research & Development
Bee
Bees flying on your desktop.

DigiCater
Mioplanet Lab - Research & Development
DigiCater
A sort of digital caterpillar moving on your desktop.

Digital Jewel
Mioplanet Lab - Research & Development
Digital Jewel
A Digital Jewel for your Desktop.

Falling Pooh
Mioplanet Lab - Research & Development
Falling Pooh
A pooh and it's balloon flying on your desktop.

Flying Notes
Mioplanet Lab - Research & Development
Flying Notes
A sliding window allows you to save data in six personal notes.

Flying Onion
Mioplanet Lab - Research & Development
Flying Onion
A ring rolling around a ball.

Magic Carpet
Mioplanet Lab - Research & Development
Magic Carpet
Enigmatic object with an animated shape.

Magnificator
Mioplanet Lab - Research & Development
Magnificator
A simple but perfectly efficient magnifier.

Mio Jackpot
Mioplanet Lab - Research & Development
Mio Jackpot
A jackpot game with sound effects and hi-score.

MioClock
Mioplanet Lab - Research & Development
MioClock
A clock for your desktop.

Robot Mouse
Mioplanet Lab - Research & Development
Robot Mouse
A robot running over your desktop trying to follow the mouse.

Timer
Mioplanet Lab - Research & Development
Timer
Rings when time is out.

Valse
Mioplanet Lab - Research & Development
Valse
Move an object with the keyboard and play music.

Waves
Mioplanet Lab - Research & Development
Waves
Simple animation using the MioEngine internal graphic engine.