Tuesday 11 April 2017

CODEF Flip Clock

Hi Folks!

After some playing around over the last couple of nights, here is something I've put together, just because I wanted to! 

It's a "Flip Clock" made using CODEF and a custom .JS lib I have made (called flip_clock.js).




Obviously there are plenty of ways out there if you Google to do this, but if you check out the code, and the notes below, this is a nice easy way of having a flip clock with only one line of code!

http://codef.namwollem.co.uk/TEST/flipclock.html

The link above is the location of a TEST page, where you can see the flip clock in action.

You can either link your page to my site, or download it, along with two dependencies (two .PNG files) - which need to be kept in the same location of the .JS file.

http://codef.namwollem.co.uk/JS/CODEF/flip_clock.js
http://codef.namwollem.co.uk/JS/CODEF/flip_clock.png
http://codef.namwollem.co.uk/JS/CODEF/flip_clock_bl.png

The way to call the clock is very simple.

flip_clock(destination canvas,colour,Xposition,Yposition,scale);

In the line above destination canvas refers to the canvas you wish to have the clock drawn upon.
Colour can be either 'white' or 'black'.
Xposition and Yposition determines the location upon the destination canvas the clock will be drawn.
Scale (default=1) is the size of the clock. (Default is approx. 580 pixels by 130 pixels).
The scale command can be ignored, and the default will be called.

See example below:

flip_clock(mycanvas,'white',50,120);

Hope you like!


Saturday 8 April 2017

More CODEF old-school effects on iOS with Anemone!

I've been working on some more old school effects using CODEF and Anemone on iOS (Jailbroken of course!).

Once you have a Jailbroken iOS device, you can download a theming engine called ANEMONE, which allows for HTML to be used a wallpaper etc..

Which then opens up a load of possibilities for using CODEF to make iOS wallpaper!

Tonight we have a cool effect called "PHIreworks", running in CODEF, on my iPhone 6 as a wallpaper.

I have posted the video below, but in case it doesn't work on your browser, you can download a sample video from the link below.

https://my.owndrive.com/index.php/s/qDLWoBeImjMlT7e



I also used CODEF to make an oldschool tunnel effect, which you can see at the Facebook CODEF group. Link below... https://www.facebook.com/groups/codef/permalink/1037938472974147/