tcaxLib  Version 1.0.0
PIX Struct Reference

The basic element of a TCAS FX, it contains dozens of DIPs (dynamic isolated pixels). More...


Detailed Description

The basic element of a TCAS FX, it contains dozens of DIPs (dynamic isolated pixels).

It is a tuple that has the following structure ((initX, initY), (width, height), (r1, g1, b1, a1, r2, g2, b2, a2, r3, ...)).

initX a float, offset of the PIX in the horizontal direction

initY a float, offset of the PIX in the vertical direction

width an integer, width of the PIX

height an integer, height of the PIX

rgba all integers, rgba colors of the PIX

Remarks: Although DIP is the basic unit of TCAS files, it is not easy to handle when come to make TCAS FX. So in TCAS FX, PIX is the one which is regarded as the basic unit and most tcaxLib APIs are used to manipulate PIXs. However DIP can still be used when needed. Most tcaxLib APIs receive PIX as an input parameter and return a new PIX as the output result. Note that, you should be definitely sure if you are going to construct your own PIX object through simple assignment operation other than APIs provided by tcaxLib, for instance, PIX = ((initX, initY), (width, height), (r1, g1, b1, a1, r2, g2, b2, a2, r3, ...)), any mistake may lead to the crash of the host program.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions