Powerful functions for you to use
ELC Functions

Functions home
Calendar overview
CAL.GETDATETIME
CAL.GETDAY
CAL.GETHOUR
CAL.GETMINUTE
CAL.GETMONTH
CAL.GETSECOND
CAL.GETYEAR
Debug overview
DEBUG.NEWLINE
DEBUG.WRITE
DEBUG.WRITELINE
File overview
FILE.CLOSE
FILE.EOF
FILE.OPEN
FILE.READLINE
FILE.WRITELINE
Graphics overview
GFX.CLEAR
GFX.COLLIDE
GFX.GETIMAGEHEIGHT
GFX.GETIMAGEWIDTH
GFX.GETBLUE
GFX.GETGREEN
GFX.GETRED
GFX.GETRGB
GFX.IMAGECLONE
GFX.IMAGECLONEPART
GFX.IMAGEDRAW
GFX.IMAGEHIDE
GFX.IMAGELOAD
GFX.IMAGELOADMAP
GFX.IMAGETOP
GFX.NEWLINE
GFX.SETDECIMALPLACES
GFX.SETIMAGEROTATION
GFX.SETIMAGESCALE
GFX.SETIMAGESIZE
GFX.SHOW
GFX.WRITE
GFX.WRITELINE
GFX.2DCIRCLE
GFX.2DGETRGB
GFX.2DLINE
GFX.2DOVERIMAGE
GFX.2DPOINT
GFX.2DRECTANGLE
GFX.2DTEXT
GFX.2DTEXTGETHEIGHT
GFX.2DTEXTGETWIDTH
Keyboard overview
KEY.CHECK
KEY.CHECKTHISKEY
KEY.READLINE
KEY.READLINECASE
KEY.WAIT
Math overview
MATH.ABS
MATH.COS
MATH.GETANGLE
MATH.INT
MATH.INVCOS
MATH.INVSIN
MATH.INVTAN
MATH.ROUND
MATH.SIN
MATH.SQRT
MATH.TAN
Mouse overview
MOUSE.GETX
MOUSE.GETY
MOUSE.CHECK
MOUSE.WAIT
Raspberry Pi overview
PI.GPIOCLEAR
PI.GPIOREAD
PI.GPIOSET
Sound overview
SND.GETFORMATS
SND.PLAYLOOP
SND.PLAYONCE
SND.STOPPLAY
SND.SOUNDLOAD
Text overview
TEXT.FIND
TEXT.FROMASCII
TEXT.FROMNUM
TEXT.GETCSV
TEXT.GETPART
TEXT.ISNUM
TEXT.LENGTH
TEXT.SPLIT
TEXT.TOASCII
TEXT.TOLOWER
TEXT.TONUM
TEXT.TOUPPER
Timer overview
TIMER.RESET
TIMER.SLEEP
TIMER.WAIT
Utility overview
UTIL.GETLOCATION
UTIL.PROXIMITY
UTIL.RANDOM
UTIL.USERNAME
Web overview
WEB.FINDJSON
WEB.FINDXMLELEMENT
WEB.FINDXMLTAG
WEB.GET
WEB.POST
WEB.URLENCODE
BREAKPOINT
FATALERROR
GARBAGECOLLECT
GETCOLS
GETROWS
SETCOLS
SETROWS

Functions reference home
Here you will find infomation about the powerful ELC library functions you can access from your app to do things like access the keyboard, mouse and display images.

Select a function from the menu on the left hand side to jump to it, or use the Next and Back links at the top and bottom of each page to navigate through the function reference pages one by one.

The library functions are grouped into the following areas:
Calendar - Get time and date information
Debug - Display text on the Java Console to help you fix issues in your code
File - Read and write text files
Graphics - Display text in the app window, load images, show or hide them in the app window
Keyboard - Return keyboard key presses
Math - Math functions (eg trigonometry)
Mouse - Check where mouse is and if left button pressed
Raspberry Pi - Control or read the GPIO pins
Sound - Load sound clips, play them once or loop
Text - Do things with words and word variables
Timer - Used for waiting, and controlling app speed
Utility - Utility functions like random number generator
Web - Access web services and process return data

The following additional functions are provided that provide functionality associated very closely to the ELC language and the YOUSRC runtime environment:
BREAKPOINT - Stop an app when run in the debugger
FATALERROR - Stop an app and display a message in a browser popup
GARBAGECOLLECT - Very few apps need this - it requests the Java runtime environment cleans-up memory
GETCOLS - Get the number of columns in an array
GETROWS - Get the number of rows in an array
SETCOLS - Set the number of columns in an array
SETROWS - Set the number of rows in an array




Play free games

Copyright (C) Previca Limited 2010-2014
Note: This site is optimised for 1024x768 screen resolution.
Although many PCs and monitors support higher resolutions, many users of this site are schools who may not have the latest equipment.
If you are lucky enough to have higher resolution equipment then we are sorry you may see spare white screen space - we hope you understand.
android, apps, raspberry pi, toys, clipart, sound clips, games, wii, nintendo, ds, microsoft, apple, music, playstation, xbox, child, children, teen, music, school