From 801777e5348ed5e5665d2472f14f36673c253d66 Mon Sep 17 00:00:00 2001 From: Brianna Rainey Date: Thu, 22 Jan 2026 16:40:37 -0500 Subject: make Life component respond to audio also adds a dissolve effect between frames and a kaleidoscope effect the fancier shape types ignore audio for now. Fixes #91 --- src/avp/components/life.ui | 82 +++++++++++++++++++++++++++++++++------------- 1 file changed, 59 insertions(+), 23 deletions(-) (limited to 'src/avp/components/life.ui') diff --git a/src/avp/components/life.ui b/src/avp/components/life.ui index 30cf9d0..a0c8999 100644 --- a/src/avp/components/life.ui +++ b/src/avp/components/life.ui @@ -7,7 +7,7 @@ 0 0 586 - 197 + 206 @@ -29,24 +29,27 @@ + + increase number for slower animation + frames per tick - 1 + 10 - 30 + 240 - 5 + 60 - Qt::Horizontal + Qt::Orientation::Horizontal @@ -103,7 +106,7 @@ - Qt::Horizontal + Qt::Orientation::Horizontal @@ -194,7 +197,7 @@ - Qt::Horizontal + Qt::Orientation::Horizontal @@ -258,7 +261,7 @@ - Qt::Horizontal + Qt::Orientation::Horizontal @@ -272,11 +275,24 @@ + + + + Kaleidoscope + + + true + + + Shadow + + true + @@ -289,7 +305,7 @@ - Qt::Horizontal + Qt::Orientation::Horizontal @@ -309,7 +325,7 @@ Up - Qt::UpArrow + Qt::ArrowType::UpArrow @@ -319,7 +335,7 @@ Down - Qt::DownArrow + Qt::ArrowType::DownArrow @@ -329,7 +345,7 @@ Left - Qt::LeftArrow + Qt::ArrowType::LeftArrow @@ -339,14 +355,14 @@ Right - Qt::RightArrow + Qt::ArrowType::RightArrow - Qt::Horizontal + Qt::Orientation::Horizontal @@ -356,6 +372,23 @@ + + + + Audio Sensitivity + + + + + + + 40 + + + 20 + + + @@ -364,19 +397,22 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +<html><head><meta name="qrichtext" content="1" /><meta charset="utf-8" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Click the preview window to place a cell. Right-click to remove.</span></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- A cell with less than 2 neighbours will die from underpopulation</p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- A cell with more than 3 neighbours will die from overpopulation.</p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- An empty space surrounded by 3 live cells will cause reproduction.</p></body></html> +hr { height: 1px; border-width: 0; } +li.unchecked::marker { content: "\2610"; } +li.checked::marker { content: "\2612"; } +</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt; font-weight:600;">Click the preview window to place a cell. Right-click to remove.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt;">- A cell with less than 2 neighbours will die from underpopulation</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt;">- A cell with more than 3 neighbours will die from overpopulation.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt;">- An empty space surrounded by 3 live cells will cause reproduction.</span></p></body></html> - 80 + 80.000000000000000 - Qt::NoTextInteraction + Qt::TextInteractionFlag::NoTextInteraction false @@ -388,7 +424,7 @@ p, li { white-space: pre-wrap; } - Qt::Vertical + Qt::Orientation::Vertical -- cgit v1.2.3