RGB Scheme with Modulus and Phase

RGB Scheme with Modulus and Phase
Loading the math board and drawing, please wait…
2019-12-19 06:02
This example demonstrates how to generate an RGB color scheme using modulus and phase. Key mathematical concepts include complex numbers and trigonometric functions. By using buttons and slider animations, users can dynamically adjust parameters and observe changes in the color scheme. This example is suitable for high school mathematics education, particularly in teaching complex numbers and trigonometric functions.

GeoGebra Commands & Parameters

  1. R(x, y) = (π - atan2(y, (-x))) / ((2 * π))
  2. G(x, y) = (1 / 3 * ((16 * (π - atan2(y, (-x))) / ((2 * π))) - floor((16 * (π - atan2(y, (-x))) / ((2 * π)))))) + 0.7
  3. B(x, y) = log(1.8, (sqrt(x^(2) + y^(2)) * 5)) / 3 - floor(log(1.8, (sqrt(x^(2) + y^(2)) * 5))) / 3 + 0.7
  4. Point A(-0.6375080924247303, -0.7581699837457673)
  5. 100
  6. 1
  7. A1 + 1
  8. A2 + 1
  9. A3 + 1
  10. A4 + 1
  11. A5 + 1
  12. A6 + 1
  13. A7 + 1
  14. A8 + 1
  15. A9 + 1
  16. A10 + 1
  17. A11 + 1
  18. A12 + 1
  19. A13 + 1
  20. A14 + 1
  21. A15 + 1
  22. A16 + 1
  23. A17 + 1
  24. A18 + 1
  25. A19 + 1
  26. A20 + 1
  27. A21 + 1
  28. A22 + 1
  29. A23 + 1
  30. A24 + 1
  31. A25 + 1
  32. A26 + 1
  33. A27 + 1
  34. A28 + 1
  35. A29 + 1
  36. A30 + 1
  37. A31 + 1
  38. A32 + 1
  39. A33 + 1
  40. A34 + 1
  41. A35 + 1
  42. A36 + 1
  43. A37 + 1
  44. A38 + 1
  45. A39 + 1
  46. A40 + 1
  47. A41 + 1
  48. A42 + 1
  49. A43 + 1
  50. A44 + 1
  51. A45 + 1
  52. A46 + 1
  53. A47 + 1
  54. A48 + 1
  55. A49 + 1
  56. A50 + 1
  57. A51 + 1
  58. A52 + 1
  59. A53 + 1
  60. A54 + 1