moved pixel
This commit is contained in:
parent
0ad907f74a
commit
fd1428c749
9
src/kernel/ui/Pixel.hx
Normal file
9
src/kernel/ui/Pixel.hx
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package kernel.ui;
|
||||||
|
|
||||||
|
import util.Color;
|
||||||
|
|
||||||
|
@:structInit class Pixel {
|
||||||
|
public var char:String;
|
||||||
|
public var bg:Color;
|
||||||
|
public var textColor:Color;
|
||||||
|
}
|
@ -6,12 +6,6 @@ import util.Vec.Vec2;
|
|||||||
import util.Color;
|
import util.Color;
|
||||||
import lib.TermWriteable;
|
import lib.TermWriteable;
|
||||||
|
|
||||||
@:structInit class Pixel {
|
|
||||||
public var char:String;
|
|
||||||
public var bg:Color;
|
|
||||||
public var textColor:Color;
|
|
||||||
}
|
|
||||||
|
|
||||||
class TermBuffer implements TermWriteable {
|
class TermBuffer implements TermWriteable {
|
||||||
/**
|
/**
|
||||||
format [y][x]. First index is the line. Second index the char in the line.
|
format [y][x]. First index is the line. Second index the char in the line.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package lib.ui;
|
package lib.ui;
|
||||||
|
|
||||||
import util.Vec.Vec2;
|
import util.Vec.Vec2;
|
||||||
import kernel.ui.TermBuffer.Pixel;
|
import kernel.ui.Pixel;
|
||||||
|
|
||||||
abstract Canvas(Array<Array<Pixel>>) to Array<Array<Pixel>> {
|
abstract Canvas(Array<Array<Pixel>>) to Array<Array<Pixel>> {
|
||||||
inline public function new() {
|
inline public function new() {
|
||||||
|
Loading…
Reference in New Issue
Block a user