Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Coding Challenge #1 - Code a Christmas Tree!

    Coding Challenges!
    11
    15
    998
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • vinicity
      vinicity F last edited by vinicity

      Here is mine! It is a fractal Christmas tree!

      First I draw the initial image:
      B543DF89-815A-47A9-AF4B-B42A9DCE765F.jpeg

      Then I copy the copy the current image, and scale and rotate it in order to draw the branches:
      3B4F9721-78AB-4EAE-8835-1091F15396CD.jpeg

      Then I just draw the result on the screen and repeat the previous step.
      A49D8A4B-9621-4C60-9964-112C65D8D4A0.jpeg

      Download ID: 3RP33MND5C

      1 Reply Last reply Reply Quote 10
      • waldron
        waldron F last edited by

        1 Reply Last reply Reply Quote 10
        • ratrat44
          ratrat44 @Dave last edited by


          Code: ND597MNDXX (may still be pending)

          1 Reply Last reply Reply Quote 10
          • PB____
            PB____ last edited by PB____

            I went for something that I could build quickly:

            loop
                clear()
                setView(0, -1, 4, 0)
                triangle({2,-1}, {1}, {3}, green, false)
                update()
            repeat
            

            Or to make it a Christmas tree:

            loop
                clear()
                setView(0, 1, 4, 0) // inverted the y here, because why not...
                triangle({2, 1}, {1}, {3}, green, false)
                triangle({2, 1}, {1}, {3}, yellow, true) // added this line for decorations
                update()
            repeat
            

            edited: setView did not handle docking and undocking the way I expected, so I had to update my submission for that (now doing everything each loop).

            1 Reply Last reply Reply Quote 8
            • JMM161437
              JMM161437 F last edited by

              this was fun!

              May be pending

              ID:S4X23MNDSL

              1 Reply Last reply Reply Quote 3
              • Dinocoder
                Dinocoder last edited by

                I made a Christmas tree using shapes, currently pending. ID: N5FXURND9F

                vinicity 1 Reply Last reply Reply Quote 6
                • Dinocoder
                  Dinocoder last edited by

                  It appears my project name is the same as JMM161437's project, it asks me if I want to overwrite mine when I enter his code. Should I rename mine and resubmit?

                  1 Reply Last reply Reply Quote 2
                  • SteveZX81
                    SteveZX81 F last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 6
                    • vinicity
                      vinicity F @Dinocoder last edited by

                      @Dinocoder said in Coding Challenge #1 - Code a Christmas Tree!:

                      I made a Christmas tree using shapes, currently pending. ID: N5FXURND9F

                      That looks great! Very arty!

                      1 Reply Last reply Reply Quote 2
                      • spikey
                        spikey F last edited by spikey

                        Shady little Christmas tree
                        did not came out as it should be
                        but your values lay inside
                        may your future be so bright.

                        Download code: NXK3BAGHN8 (pending)

                        Update: found the interpretation bug in my rudimentary SVG slurper

                        1 Reply Last reply Reply Quote 4
                        • spikey
                          spikey F last edited by spikey

                          Reading through the posts, I feel like my SVG approach is not fitting the core of this challenge. I will move it to a separate WIP thread. So, this submission fits better: download code NQ6HVMNDN8
                          2020122702493900-86FC867622BE2C2315A009D470F52DAE.jpg 2020122703120200-86FC867622BE2C2315A009D470F52DAE.jpg
                          The dark/light green structure in the tree, was a typo, but I decided that it looks nice 😄 so I left it.

                          1 Reply Last reply Reply Quote 3
                          • First post
                            Last post