# Look under the hood - methods

**URL:** https://discourse.processing.org/t/look-under-the-hood-methods/592
**Category:** Processing
**Created:** [June 1, 2018, 8:08am UTC](https://discourse.processing.org/t/look-under-the-hood-methods/592 "2018-06-01T08:08:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![greenleafvolatile](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@greenleafvolatile](https://discourse.processing.org/u/greenleafvolatile)
#### Post date: [June 1, 2018, 8:08am UTC](https://discourse.processing.org/t/look-under-the-hood-methods/592/1 "2018-06-01T08:08:14Z")

</div>

Hey,

Newb here. Is it possible to see the code that makes up different methods such as rect(), ellipse() etc.?

Cheers,

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [June 1, 2018, 8:30am UTC](https://discourse.processing.org/t/look-under-the-hood-methods/592/2 "2018-06-01T08:30:24Z")

</div>

> **[processing/processing](https://github.com/processing/processing/tree/master/core/src/processing)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

---

<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: [June 4, 2018, 12:19am UTC](https://discourse.processing.org/t/look-under-the-hood-methods/592/3 "2018-06-04T00:19:01Z")

</div>

Sometime you will find things in the source code – for example, check out TRIANGLE\_FAN or sphere() to see exactly how it works. Sometimes you will find the interface, but the actual lowest-level implementation of primitives will depend on the renderer – for example, how points or lines are handled in the JAVA2D, P2D, or P3D. P2D and P3D are OpenGL-based, so there some low-level drawing logic is actually happening in OpenGL, not in Processing(Java).
