24 namespace FO=fractalOne;
29 const std::uint32_t maxIters,
31 const std::uint32_t numIters )
34 static_cast<FO::fltType>(numIters) / static_cast<FO::fltType>(maxIters) };
37 const std::uint32_t color{
static_cast<std::uint32_t
>(colorMagnitude) };
39 if( std::abs( z + 6.0 ) < 0.1 )
40 return( std::move( std::make_tuple(
41 color, 0x00, color ) ) );
42 if( std::abs( z + 4.0 ) < 0.1 )
43 return( std::move( std::make_tuple(
44 color, color, 0x00 ) ) );
45 if( std::abs( z - 3.0 ) < 0.1 )
46 return( std::move( std::make_tuple(
47 color, 0x00, 0x00 ) ) );
48 if( std::abs( z - 5.0 ) < 0.1 )
49 return( std::move( std::make_tuple(
50 0x00, color, 0x00 ) ) );
51 if( std::abs( z - 7.0 ) < 0.1 )
52 return( std::move( std::make_tuple(
53 0x00, 0x00, color ) ) );
54 throw( std::runtime_error(
"Unknown zero..." ) );
64 return( z_5 - (5.0 * z_4) - (55.0 * z_3) + (245.0 * z_2) + (654.0 * z) - 2520.0 );
72 return( (5.0 * z_4) - (20.0 * z_3) - (165.0 * z_2) + (490.0 * z) + 654.0 );
77 std::shared_ptr<FO::fractalParamsType>
90 const std::vector<FO::cmplxType> zeros{
96 const std::uint32_t maxIters{ 50 };
98 const std::shared_ptr<FO::fractalParamsType> fParams{
99 std::make_shared<FO::fractalParamsType>(
std::tuple< std::uint8_t, std::uint8_t, std::uint8_t > colorType
This type is used to declare variables that hold the color of a given pixel in the fractal...
std::complex< fltType > cmplxType
std::shared_ptr< fractalParamsType > getFractalParams(void)