mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-17 05:34:50 -04:00
--User changes
-Add new style sheet called uranium that is reminiscent of the old Winamp color scheme of the same name. -All for keyboard presses to edit affines. --Q: rotate counter clockwise. --E: rotate clockwise. --W: move up. --S: move down. --A: move left. --D: move right. --G: shrink. --H: grow. --Hold shift to decrease amount, control to increase amount. -Change some menu shortcuts to accommodate these new affine editing shortcuts. -Random xaos now just provides values of either 0 or 1. Hold control to get the old behavior. --Bug fixes -Waffle variation was broken in OpenCL.
This commit is contained in:
@ -225,6 +225,7 @@ void Fractorium::OnClearXaosButtonClicked(bool checked) { m_Controller->ClearXao
|
||||
template <typename T>
|
||||
void FractoriumEmberController<T>::RandomXaos()
|
||||
{
|
||||
bool ctrl = QGuiApplication::keyboardModifiers().testFlag(Qt::ControlModifier);
|
||||
Update([&]
|
||||
{
|
||||
size_t i = 0;
|
||||
@ -233,7 +234,9 @@ void FractoriumEmberController<T>::RandomXaos()
|
||||
{
|
||||
for (size_t j = 0; j < m_Ember.XformCount(); j++)
|
||||
{
|
||||
if (m_Rand.RandBit())
|
||||
if (!ctrl)
|
||||
xform->SetXaos(j, T(m_Rand.RandBit()));
|
||||
else if (m_Rand.RandBit())
|
||||
xform->SetXaos(j, T(m_Rand.RandBit()));
|
||||
else
|
||||
xform->SetXaos(j, TruncPrecision(m_Rand.Frand<T>(0, 3), 3));
|
||||
|
Reference in New Issue
Block a user