# Halftone from photo

**URL:** https://discourse.processing.org/t/halftone-from-photo/20130
**Category:** Coding Questions
**Created:** [April 25, 2020, 9:16am UTC](https://discourse.processing.org/t/halftone-from-photo/20130 "2020-04-25T09:16:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![May](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@May](https://discourse.processing.org/u/May)
#### Post date: [April 25, 2020, 9:16am UTC](https://discourse.processing.org/t/halftone-from-photo/20130/1 "2020-04-25T09:16:40Z")

</div>

Hi!

I am currently working on a project about halftone and I am quite new to the coding-world.  
I am struggling with the degrees in my halftone and with how to make a halftone with lines.  
Right now the grids are all by default on 0° but I would like to have them on 75°, 45° an 15°.

Could you help me with both these problems?

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 3, 2020, 6:47pm UTC](https://discourse.processing.org/t/halftone-from-photo/20130/2 "2020-05-03T18:47:10Z")

</div>

> [@May](#):
>
> 75°, 45° an 15°

Were you able to resolve this?

Do you know how to draw one single 75° line?

> **[line() / Reference](https://processing.org/reference/line_.html)**
>
> Draws a line (a direct path between two points) to the screen. The version of line() with four parameters draws the line in 2D. To color a line, use the stroke() function. A line cannot …

There are many ways, but one is with absolute coordinates  
[https://processing.org/tutorials/drawing/](https://processing.org/tutorials/drawing/)  
and one is using rotate() as a 2D transformation

> **[2D Transformations](https://processing.org/tutorials/transform2d/)**
>
> Learn how to translate, rotate, and scale shapes using 2D transformations.

Start there with one line, and you can quickly build up.

(Some much more advanced approaches to halftones in Processing may use libraries and/or shaders.)
