Fibonacci sequences on top of each other. I hope you like the mathematics, beauty and customisation of this design.
I did this as a way for me to get used to IF, but as always I add some sort of cutomisation. you can change the number of sequences and how far away they are from each other.
A fibonacci sequence goes: 1, 1, 2(1+1), 3(1+2), 5(2+3), 8(3+5), 13(5+8), 21(8+13) ...
The code and the world are below, please feel free to use it:
CS
;BY MATHSKID
;how many fibonacci sequences
MAKE "reptimes 1
;distance between fibonacci sequences
MAKE "distance 1
TO fibon :v :v2
IF :v > 100 [STOP]
PD
FD :v RT 90
fibon :v2 :v+:v2
END
REPEAT :reptimes[fibon 0.1 0.1 PU FD 44.1 RT 90 FD 71.4 LT 90 FD :distance EAST :distance]
INFO: Time for setup and init of GL element no. 0: 24 ms.
INFO: activate ViewpointBindable null/defaultX3DViewpointNode
INFO: register ViewpointBindable null/defaultX3DViewpointNode
INFO: create new Viewpoint for X3DViewpointNode-stack
INFO: activate BackgroundBindable null/defaultX3DBackgroundNode
INFO: register BackgroundBindable null/defaultX3DBackgroundNode
INFO: create new Background for X3DBackgroundNode-stack
INFO: System ready.
INFO: activate NavigationInfoBindable null/defaultX3DNavigationInfoNode
INFO: register NavigationInfoBindable null/defaultX3DNavigationInfoNode
INFO: NavType: undefined
INFO: Switch to examine mode.
INFO: create new NavigationInfo for X3DNavigationInfoNode-stack
INFO: activate EnvironmentBindable null/defaultX3DEnvironmentNode
INFO: register EnvironmentBindable null/defaultX3DEnvironmentNode
INFO: create new Environment for X3DEnvironmentNode-stack
INFO: setBaseURL:
INFO: webgl2 context found
Vendor: WebKit Google Inc. (Google), Renderer: WebKit WebGL ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (LLVM 10.0.0) (0x0000C0DE)), SwiftShader driver), Version: WebGL 2.0 (OpenGL ES 3.0 Chromium), ShadingLangV.: WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium), MSAA samples: 4
Extensions: EXT_clip_control, EXT_color_buffer_float, EXT_color_buffer_half_float, EXT_conservative_depth, EXT_depth_clamp, EXT_float_blend, EXT_polygon_offset_clamp, EXT_texture_compression_bptc, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_mirror_clamp_to_edge, EXT_texture_norm16, NV_shader_noperspective_interpolation, OES_draw_buffers_indexed, OES_sample_variables, OES_shader_multisample_interpolation, OES_texture_float_linear, OVR_multiview2, WEBGL_clip_cull_distance, WEBGL_compressed_texture_astc, WEBGL_compressed_texture_etc, WEBGL_compressed_texture_etc1, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw, WEBGL_polygon_mode, WEBGL_stencil_texturing
INFO: Initializing X3DCanvas for [x3dom-1743486044169-canvas]
INFO: Creating canvas for (X)3D element...
INFO: Found 1 X3D and nodes...
INFO: X3DOM 1.8.3, Build: 7482, Revison: 03da6d38708e4eafc94c2305fdc175312a880321, Date: Tue Aug 1 11:18:17 2023 +0200
please coment to tell me whats good or bad or if you have any ideas


Comments
Thumb up
This is cool,
But when I try your codes, I get something different like the image below. Do you know why?
sorry
sorry i'll edit that, i changed some of the variables in the code.