Code Monkey home page Code Monkey logo

hp39gii-dimgrob's Introduction

HP-39GII DIMGROB

使用方法

打开index.html并选取图片文件,将生成的数据通过HP-39GII Connectivity Kit保存到机身的L变量中(L1, L2, etc)。
绘制函数:

EXPORT RECALLLIST(LST,OX,OY)
BEGIN
  LOCAL W,H,R,X,Y,T,C,P;
  LST(1)►W;
  LST(2)►H;
  INT(W/16)►R;
  IF W MOD 16>0 THEN
    R+1►R
  END; 
  FOR Y FROM 0 TO H-1 DO
    FOR T FROM 0 TO R-1 DO 
      LST(Y*R+T+3)►P;
      FOR X FROM 0 TO 15 DO
        IF X+16*T≥W THEN
          BREAK;
        END;
        P MOD 4►C;
        INT(P/4)►P;
        PIXON_P((15-X)+16*T+OX,Y+OY,C);
      END;
    END;
  END;
  FREEZE
END;

使用例:

EXPORT RECALLALL()
BEGIN
  RECT();
  RECALLLIST(L2,0,0);
  RECALLLIST(L3,0,50);
  RECALLLIST(L4,0,100);
  FREEZE;
END;

因列表只能保存999个数据,所以将256x127的图片拆为3个LIST。可以通过SUBGROB将绘制的图片保存到G变量(G1, G2, etc)

预览

preview

hp39gii-dimgrob's People

Contributors

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