ASK APPLETSTETRACTYS LogoTETRACTYS Software
  • Home

    How to

  • Ask an Applet

    Collections

  • Index
  • Utilities
  • Science
  • Graphic FX
  • Games
  • Led Display 2.0 a tiny and powerful LED display
    Download it here! only 2662 bytes

    Led Display 2 is an applet that shows a scrolling text. It can be controlled programatically through JavaScript. For an example and a list of available methods click here.


    Applet Installation

    Simply upload the file LedDisplay2.zip to your site and put these HTML tags in your page:

    <APPLET CODE=LedDisplay2.class
    ARCHIVE=LedDisplay2.zip WIDTH=301 HEIGHT=33>
    <param name="text" value="put_the_text_here">
    </APPLET>
    

    Parameters available:

    • text sets the displayed text
    • brightColor sets the color of bright leds (colors are defined using the exadecimal form and the red, green, blue order - e.g. 00ff88 = full green, half blue)
    • darkColor sets the color of dark leds (format same as above)
    • backColor sets the color of pixels around leds (format same as above)
    • speed sets the scrolling speed (lower values higher speeds)
    • fontFamily sets the font family (one of Helvetica, TimesRoman or other Java fonts)
    • fontStyle sets the font style (one of 0 - plain, 1 - bold, 2 - italic, 3 - bold and italic)
    • fontSize sets the font size (usual meaning). The last three parameters must be set togheter.

    Warning Due to the pixel size of leds, some combination of colors could show unexpected results, however the three colors are always set according to your choice.

    Suggestion Try the JavaScript interface to create your own color effects.

    This applet is small and powerful. Use it, it's free!


    JavaScript Interface

    This is a list of available methods to control the Led Display aspect and behaviour. All these methods are accessible with JavaScript.

    At the bottom of the page you can find an example, but more and more possibilities can be discovered.

    • clear() clears the display
    • setText(text) changes the displayed text
    • setBright(color) changes the color of bright pixels or text (colors are defined using the exadecimal form and the red, green, blue order - e.g. 00ff88 = full green, half blue)
    • setDark(color) changes the color of dark pixels (format same as above)
    • setBack(color) changes the color of background (format same as above). It's updated only after a clear
    • setSpeed(milliseconds) changes the scrolling speed (lower values higher speeds)
    • setNewFont(family,style,size) changes the displayed font. FAMILY: one of Helvetica, TimesRoman or other Java fonts; STYLE: 0 - plain, 1 - bold, 2 - italic, 3 - bold and italic; SIZE: usual meaning.

    JavaScript Example







    Family:
    Style:
    Size:
    For more information
    send an email to
    TETRACTYS Software
    Copyright © 1999 Leonardo Boselli
    All Rights Reserved. Legal Terms.