PVPixel Vision 8inpixelvision8.hashnode.dev·Oct 10, 2021 · 4 min readPixel Vision 8 Button() Lua TutorialThe main form of input for Pixel Vision 8 is the controller's buttons. You can get the current state of any button by calling the Button() method and supplying a button ID. There are optional parameters for specifying an InputState and the controller...00
PVPixel Vision 8inpixelvision8.hashnode.dev·Oct 10, 2021 · 3 min readPixel Vision 8 BackgroundColor() Lua TutorialThe background color is used to fill the screen when clearing the display. You can use this method to read or update the background color at runtime. When calling BackgroundColor() without an argument, it returns the current background color offset a...00
PVPixel Vision 8inpixelvision8.hashnode.dev·Oct 10, 2021 · 3 min readPixel Vision 8 CalculateIndex() Lua TutorialConverts an X and Y position into an index value. This is useful for finding positions in 1D arrays that represent 2D data. Usage CalculateIndex ( x, y, width ) Arguments NameValueDescription xintThe x position. yintThe y position. widthint...00
PVPixel Vision 8inpixelvision8.hashnode.dev·Oct 10, 2021 · 3 min readPixel Vision 8 CalculateDistance() Lua TutorialA fast way to calculate the distance between two points. Usage CalculateDistance ( x0, y0, x1, y1 ) Arguments NameValueDescription x0intThe first point’s x position. y0intThe first point’s y position. x1intThe second point’s x position. y1...00
PVPixel Vision 8inpixelvision8.hashnode.dev·Oct 10, 2021 · 3 min readPixel Vision 8 CalculatePosition() Lua TutorialConverts an index value into a point with an X and Y value to help when working with 1D arrays that represent 2D data. Usage CalculatePosition ( index, width ) Arguments NameValueDescription indexintThe position of the 1D array. widthintThe ...00