mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
tweak modals test clifford attractor generation
This commit is contained in:
parent
247dfd2fe7
commit
bc2e4a4b2c
1 changed files with 5 additions and 10 deletions
|
|
@ -175,19 +175,14 @@ pub fn spawn_test() {
|
||||||
// https://sequelaencollection.home.blog/2d-chaotic-attractors/
|
// https://sequelaencollection.home.blog/2d-chaotic-attractors/
|
||||||
#[cfg(feature = "ditherpunk")]
|
#[cfg(feature = "ditherpunk")]
|
||||||
fn clifford() -> Img {
|
fn clifford() -> Img {
|
||||||
// IMW+20, IMW-10 Line (resize + rotate)
|
|
||||||
// IMW-20, IMW-10 OK ()
|
|
||||||
// IMW+10, IMW+20 Line (resize)
|
|
||||||
// IMH-15 IMW-15 Line (rotate)
|
|
||||||
|
|
||||||
// width & height chosen to force resize & rotation
|
// width & height chosen to force resize & rotation
|
||||||
const WIDTH: u32 = gam::IMG_MODAL_HEIGHT * 2;
|
const WIDTH: u32 = gam::IMG_MODAL_HEIGHT + 2;
|
||||||
const HEIGHT: u32 = gam::IMG_MODAL_WIDTH * 2;
|
const HEIGHT: u32 = gam::IMG_MODAL_WIDTH + 2;
|
||||||
const X_CENTER: f32 = (WIDTH / 2) as f32;
|
const X_CENTER: f32 = (WIDTH / 2) as f32;
|
||||||
const Y_CENTER: f32 = (HEIGHT / 2) as f32;
|
const Y_CENTER: f32 = (HEIGHT / 2) as f32;
|
||||||
const SCALE: f32 = WIDTH as f32 / 5.1; //70.0;
|
const SCALE: f32 = WIDTH as f32 / 5.1;
|
||||||
const STEP: u8 = 32;
|
const STEP: u8 = 16;
|
||||||
const ITERATIONS: u32 = 400000;
|
const ITERATIONS: u32 = 200000;
|
||||||
let mut buf = vec![255u8; (WIDTH * HEIGHT).try_into().unwrap()];
|
let mut buf = vec![255u8; (WIDTH * HEIGHT).try_into().unwrap()];
|
||||||
let (a, b, c, d) = (-2.0, -2.4, 1.1, -0.9);
|
let (a, b, c, d) = (-2.0, -2.4, 1.1, -0.9);
|
||||||
let (mut x, mut y): (f32, f32) = (0.0, 0.0);
|
let (mut x, mut y): (f32, f32) = (0.0, 0.0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue