Giter Club home page Giter Club logo

betterluaapi-for-ti-nspire's Introduction

BetterLuaAPI for TI-Nspire.

Made by Adrien "Adriweb" Bertrand.

Thanks to Jim Bauwens, John Powers, Levak, LDStudios

How to use :

Copy in your code the functions you want and start using them, that's all ! :-) Please also write in your code/readme something like "[a part of] BetterLuaAPI by Adriweb was used"... Since this is all written in Nspire-Lua, it requires you to run any OS 3.x on your calculator. The latest OS updates are available on TI's Website.

New functions/things brought by BetterLuaAPI :

  • device table : informations about the user's device (apiversion ? , hasColor ? , isCalc ? , type of calc ? , current language ? )-
  • Colors table (can be used for setColor)
  • copyTable(table) (copies a table into another)
  • deepcopy(table) (deep-copies a table into another)
  • test(arg) (returns 1 if arg true or 0 if arg false)
  • screenRefresh() same as platform.window:invalidate() but shorter
  • pww() same as platform.window:width() but shorter
  • pwh() same as platform.window:height() but shorter
  • gc:drawPoint(x, y)
  • gc:drawCircle(x, y, radius)
  • gc:fillCircle(x, y, radius)
  • gc:fillGradientCircle(x, y, radius, color1Tbl, color2Tbl)
  • gc:fillGradientRect(x, y, w, h, color1Tbl, color2, direction) (direction can be 1 or 2)
  • gc:drawCenteredString(str)
  • gc:drawXCenteredString(str,y)
  • gc:setColor(theColor) (string or table of RGB)
  • gc:verticalBar(x)
  • gc:horizontalBar(y)
  • gc:drawSquare(x,y,l)
  • gc:drawRoundRect(x,y,width,height,radius)
  • gc:fillRoundRect(x,y,wd,ht,radius)
  • gc:clearWindow(theColor)

Notes :

More information about Lua programming on the TI-Nspire : Inspired-Lua and TI Calculators in general : TI-Planet.org

Contact : adrienbertrand @ msn . com

betterluaapi-for-ti-nspire's People

Contributors

adriweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.