Mioplanet Lab
Research & Development
SEARCH
     Home | MioScript Experimentation | Digital Jewel

  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

Digital Jewel


 A Digital Jewel for your Desktop.

Digital Jewel
Mioplanet Lab - Research & Development

This gadget adds a touch of style on your desktop.

Right click to close. 



Try jewel.exe


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

 
 
Filejewel.exe
Size522 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.

 
 
Filejewel.mioa
Size37 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. 



 main.k 

// Main source code

event.load
      &size = 90 // Size of the ellipse

      extern.close("{APP_NAME}") // Only one instance allowed
      app.init("{APP_ID}", "{APP_NAME}", "{APP_VERSION}", "{APP_BUILD}", "{CREATE_LOG}")

      app.booster(true)

      // Set the shape, white is transparent color
      window.main.pos.now(screen.width()/2 - &size/2, screen.height()/2 - &size/2, 0,0)
      window.main.shape.load(path.rsc("face.bmp"), null, null, num.rgb(255,255,255))
      window.main.canGoOut(true)

      // Load images
      &iWork = draw.mem.create()
      draw.&iWork.Load(path.rsc("face.bmp"))
      draw.&iWork.Load(path.rsc("shadow.bmp"), 120, 0)

      doEvent.waitTimer()
event.end

// Main loop, animate the jewel
event.waitTimer
      doEvent.waitTimer(10)

      &ptra = time.chrono.stop()/20
      for(&i, 200, 360, 75)
            &color_level = num.cos(&i+&ptra/2, 100)+100
            &ellipse_x = num.cos(&i*2 + &ptra*2 + 10, &i/(&Size/20)) + &Size/8 + 10
            &ellipse_y = num.sin(&i + &ptra*2-10, &i/(&Size/20))+ &Size/8-10
            draw.main.ellipse(&ellipse_x, &ellipse_y, &size, &size, num.rgb(&color_level, &color_level, 0), null, 5)

            &ellipse_x = num.cos(&i*2 + &ptra*2, &i/(&size/20)) + &size/8
            &ellipse_y = num.sin(&i + &ptra*2, &i/(&size/20)) + &size/8
            Draw.Main.Ellipse(&ellipse_x, &ellipse_y, &size, &size, num.rgb(200-&a/2, 200-&a, 0), 10, 3)                  
      for.next

      draw.main.copyFrom.&iWork(120, 0, 120, 120, 5, 5, null, null, 3, true, num.rgb(255,255,255))
      draw.main.copyFrom.&iWork(0, 0, 120, 120, 0, 0, null, null, 100, true, 0)
      draw.main.paint
event.end

event.terminate()
  window.main.visible(false)
event.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.

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.

Squared
Mioplanet Lab - Research & Development
Squared
A full screen animation.

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.