Giter VIP home page Giter VIP logo

monitor's Introduction

Aerys Monitor

Capture 1 Capture 2

Lightweight customizable ActionScript 3.0 property monitor:

  • watch any property of any class
  • customizable update rate
  • customizable per-property color
  • chat rendering for numeric values
  • watch framerate, memory and Flash Player version
  • ready to use framerate property

Usage

// get a singleton Monitor object
var monitor : Monitor = Monitor.monitor;

// set the update (refresh) rate to 15 updates per second
monitor.updateRate = 15.;

// add the monitor to the display list
stage.addChild(monitor);

// watch the rotationX property of the camera object with a scale value of 1 / (PI / 2)
monitor.watch(camera, "rotationX", 0x55ff00, 1. / (Math.PI / 2.), true);
// watch the rotationY property of the camera object with a scale value of 1 / (2 * PI)
monitor.watch(camera, "rotationY", 0xff5500, 1. / (2. * Math.PI), true);
// watch the rotationZ property of the camera object with no scale value (=> no chart rendering)
monitor.watch(camera, "rotationZ", 0x5599ff);

// watch multiple properties
monitor.watchProperties(physics,
                        ["processingTime", "speed"],
                        [0x00ff00, 0xff0000],
                        [1. / 40., 1. / 10.]);

// change the background color (0xAARRGGBB)
monitor.backgroundColor = 0x7f000000;

Contribute

aerys-monitor is MIT-licensed. Make sure you tell us everything that's wrong!

monitor's People

Contributors

warrenseine avatar

Watchers

paling avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.