# Project guidance

**URL:** <https://discourse.processing.org/t/project-guidance/27115>\
**Category:** Libraries\
**Created:** [January 16, 2021, 3:18pm UTC](https://discourse.processing.org/t/project-guidance/27115 "2021-01-16T15:18:30Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [January 19, 2021, 1:16pm UTC](https://discourse.processing.org/t/project-guidance/27115/23 "2021-01-19T13:16:09Z")

</div>

here is a sketch that will extract all the contours from a given text.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7e0b5bef0b8b70e5bbd7802adc73d7a138838d46.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/624d794649852bacfea99dd6ba1ce521396d46e6.png)

[https://drive.google.com/file/d/1YG1LbvNxvzDErYjMbdq19vF9V4alC18G/view?usp=sharing](https://drive.google.com/file/d/1YG1LbvNxvzDErYjMbdq19vF9V4alC18G/view?usp=sharing)

I would have posted on git, but it currently has issues pushing a commit.

all the points are stored in img.cell.contours as cells, a class with an x and y position and a color. Although they are all unsorted.

in setup

```auto
void setup(){
  //String imPath = dataPath("images")+"\\";
  String imAndroidPath = dataPath("images").replace("/data/","")+"/";
  String shaderPath = dataPath("shaders").replace("/data/","")+"/";
  loc = imAndroidPath+"car.jpg";
  //img = new Img(loc);
//class constructor for the text requires; string,width of image,height of image,position x of text, position y of text, height of text
  img = new Img("The cat sat on the wall!",1000,100,30,70,20);
  button = new Button(width - 100,10,90,20,"Reset");
};

```

there is another constructor which allows you to change text color and background color but the contour color is always black currently.

There is a lot you can ignore in the code.

But main thing is you now have the points, all the points for the contours.

Also note I have not added font support though it likely isnt too hard.

Github link now available

> **[paulgoux/contour](https://github.com/paulgoux/contour/tree/main/sketch_200714a)**
>
> main/sketch\_200714a

[Previous page](https://discourse.processing.org/t/project-guidance/27115.md?page=1)
