mirror of
https://github.com/kristoferssolo/donut-rs.git
synced 2025-10-21 19:20:34 +00:00
Change readme
This commit is contained in:
parent
1382460b8e
commit
dc3a1c4316
@ -9,6 +9,7 @@ fn main() {
|
|||||||
|
|
||||||
loop {
|
loop {
|
||||||
let mut zbuffer: [f32; SCREEN_SIZE] = [0.0; SCREEN_SIZE];
|
let mut zbuffer: [f32; SCREEN_SIZE] = [0.0; SCREEN_SIZE];
|
||||||
|
|
||||||
let mut output: [char; SCREEN_SIZE] = [' '; SCREEN_SIZE];
|
let mut output: [char; SCREEN_SIZE] = [' '; SCREEN_SIZE];
|
||||||
|
|
||||||
for j in (0..=628).step_by(7) {
|
for j in (0..=628).step_by(7) {
|
||||||
@ -66,7 +67,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
// print
|
// print
|
||||||
print!("\x1b[H");
|
print!("\x1b[H");
|
||||||
for index in 0..output.len() {
|
for (index, _) in output.iter().enumerate() {
|
||||||
let i: i32 = index as i32;
|
let i: i32 = index as i32;
|
||||||
if i % WIDTH == 0 {
|
if i % WIDTH == 0 {
|
||||||
println!();
|
println!();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user