diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-28 21:11:58 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-08 16:30:11 +0800 |
| commit | e3804d0ba816e9eab79d20d5e61b71e2f91c2ac3 (patch) | |
| tree | 933daf429dd49e300653a3d1842f2e15c8d905ef /src/image.rs | |
| parent | 3a8496e0b1e7ee1b12d2841a02abc2c2f493eb62 (diff) | |
todo
Diffstat (limited to 'src/image.rs')
| -rw-r--r-- | src/image.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/image.rs b/src/image.rs index 06e08f6..cd76950 100644 --- a/src/image.rs +++ b/src/image.rs @@ -8,12 +8,14 @@ use crate::ast::DepthExpr; type Offset = (u32, u32); // x, y or width, height +// TODO: based on how much text const COMPONENT_WIDTH: u32 = 20 * RESOLUTION_MULTIPLIER; const COMPONENT_HEIGHT: u32 = 20 * RESOLUTION_MULTIPLIER; -const DIRECTION_LINE_THICKNESS: u32 = 1 * RESOLUTION_MULTIPLIER; -const DIRECTION_LINE_LENGTH: u32 = 10 * RESOLUTION_MULTIPLIER; -const DIRECTION_LINE_ARROW_OFFSET: u32 = 3 * RESOLUTION_MULTIPLIER / 2; +// TODO: LENGTH based on where to where +const DIRECTION_LINE_THICKNESS: u32 = 2 * RESOLUTION_MULTIPLIER; +const DIRECTION_LINE_LENGTH: u32 = 13 * RESOLUTION_MULTIPLIER; +const DIRECTION_LINE_ARROW_OFFSET: u32 = 5 * RESOLUTION_MULTIPLIER / 2; const RESOLUTION_MULTIPLIER: u32 = 50; @@ -21,6 +23,13 @@ const RESOLUTION_MULTIPLIER: u32 = 50; offset based mutation model, to avoid overflowing on previous image */ +enum Direction { + UP, + DOWN, + LEFT, + RIGHT, +} + mod colors { use image::Rgba; pub const STARSTOP: Rgba<u8> = Rgba([ |
