# Combining textToPoints with Daniel Shiffman’s Space Colonization Algorithm to create leaves

**URL:** <https://discourse.processing.org/t/combining-texttopoints-with-daniel-shiffman-s-space-colonization-algorithm-to-create-leaves/37138>\
**Category:** Coding Questions\
**Created:** [May 27, 2022, 12:23pm UTC](https://discourse.processing.org/t/combining-texttopoints-with-daniel-shiffman-s-space-colonization-algorithm-to-create-leaves/37138 "2022-05-27T12:23:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_tt\_tt](https://avatars.discourse-cdn.com/v4/letter/_/cab0a1/32.png) [@\_tt\_tt](https://discourse.processing.org/u/_tt_tt)\
**Post date:** [May 27, 2022, 12:23pm UTC](https://discourse.processing.org/t/combining-texttopoints-with-daniel-shiffman-s-space-colonization-algorithm-to-create-leaves/37138/1 "2022-05-27T12:23:56Z")

</div>

Hello! I am trying to create a project where i want to combine Daniel Shiffmans code from his [Coding Challenge](https://editor.p5js.org/codingtrain/sketches/r9pxis9g-) and a textToPoints Function. I want to use the points from the texttopoints array as leaves instead of his random leaves.  
I tried to push a new Leaf for every pts in the array in the tree.js file but i only get errors I also tried to implement my typo.js function in the leaf.js file, but also only errors.  
I can´t figure out myself to do this.

I would be so thankful if anyone could help me with this.

here you can find the complete project: [editor.p5.js](https://editor.p5js.org/tt__tt/sketches/TvxFSqwj3)  
I changed everything back, so that the code works.

All the best,  
Mattis

---

<div class="post-metadata">

**Author:** ![The\_Traveler](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/the_traveler/32/16252_2.png) [@The\_Traveler](https://discourse.processing.org/u/The_Traveler)\
**Post date:** [May 27, 2022, 12:40pm UTC](https://discourse.processing.org/t/combining-texttopoints-with-daniel-shiffman-s-space-colonization-algorithm-to-create-leaves/37138/2 "2022-05-27T12:40:50Z")

</div>

I changed everything back, so that the code works.

Welcome. Well, you really need to post YOUR code so folks can try and help you with your errors. It’s also good for you to post the errors themselves that your getting. Cheers.
