Search found 20 matches

by Dr. Madskull
Wed Apr 22, 2020 10:50 pm
Forum: Uploads
Topic: Playing around with Exploding Suns
Replies: 1
Views: 7092

Re: Playing around with Exploding Suns

Cool, I really like the color-set and slower speed in the bubbling-lava. :)
by Dr. Madskull
Tue Feb 11, 2020 9:21 pm
Forum: Support
Topic: Get started using jsYossGeneral
Replies: 0
Views: 9083

Get started using jsYossGeneral

Hi there! Long time no update, so I felt it's time to actually document what can be done with the jsYossGeneral library. What is it? It is a simple plugin allowing you to control some things which the javascript cannot normally do, like getting the content of the home directory! I do this simple; ea...
by Dr. Madskull
Thu Nov 21, 2019 11:54 am
Forum: Uploads
Topic: Sunrays!
Replies: 0
Views: 6399

Sunrays!

Inspired from a discussion I created a sunray-emulator. :mrgreen: Well, it looks nice at least, maybe looks a little like the monitor with green code falling in The Matrix movies, except this is yellow. The functionality is interesting though: The sunlight is considered to be a 'package' of power, p...
by Dr. Madskull
Sat Nov 16, 2019 12:31 am
Forum: Uploads
Topic: Color Fire!
Replies: 0
Views: 7239

Color Fire!

Taking the old fire screen saver and adding colors. Simple and beatiful! The default is a blue spooky tint, but you can easily change it by enabling the code block you desire: // Orange is the new red. { fireArray[i][0].r=Math.floor(Math.random()*256); // Using floor means it never reach 256. // To ...
by Dr. Madskull
Tue Nov 12, 2019 8:54 pm
Forum: Uploads
Topic: Life, framerated!
Replies: 0
Views: 6196

Life, framerated!

I finally grew tired of having the life screensaver blowing up my cpu usage so high the fan went on. So I simply added the code for controlling the framerate! Now you can set the fps as low as you wish. I set it to 8, which gave it a decent look, and the fan no longer starts. :mrgreen: What's more, ...
by Dr. Madskull
Sat Sep 28, 2019 7:38 am
Forum: Uploads
Topic: Simcity :)
Replies: 0
Views: 6103

Simcity :)

..or at least the basics. :D Click around to add and remove buildings and see how the building influence the surrounding area.
by Dr. Madskull
Thu Aug 08, 2019 2:17 pm
Forum: Uploads
Topic: Latest version of default screen saver
Replies: 3
Views: 30287

Re: Latest version of default screen saver

For a clearer code example for taking total pause time into account, please take a look at this code example: How to control framerate / lower cpu usage
by Dr. Madskull
Thu Aug 08, 2019 1:57 pm
Forum: Uploads
Topic: How to control framerate / lower cpu usage
Replies: 1
Views: 5815

Re: How to control framerate / lower cpu usage

Added some nice to have variables: jsStartTime, TotalPauseTime and TotalRunTime. In a number of cases, it might be good to know the total time since the javascript started so I added it to this example code. It's simple enough: TotalRunTime = Now - jsStartTime - TotalPauseTime; jsStartTime is the st...
by Dr. Madskull
Wed Aug 07, 2019 1:18 pm
Forum: Uploads
Topic: Lawnmower
Replies: 0
Views: 6352

Lawnmower

This is a lawnmower cutting the grass! There are some bushes spread out over the garden, acting as obstacles, and the screen border is the border of the garden. The lawnmower itself is the actual experiment; I try to mimic a real autonomous lawnmower, with its limited ways of detecting its surroundi...
by Dr. Madskull
Thu Aug 01, 2019 1:45 pm
Forum: Uploads
Topic: Fire!
Replies: 0
Views: 6407

Fire!

Here's a real classic screen saver, the fire! :evil:

It is a two-dimensional array and the loop fetches the values from the rows below, smooth them out and draw the result as red rectangles. The effect is a burning fire where the flames fade as they rise.