# What are PConstants

**URL:** <https://discourse.processing.org/t/what-are-pconstants/19923>\
**Category:** Beginners\
**Created:** [April 19, 2020, 8:14am UTC](https://discourse.processing.org/t/what-are-pconstants/19923 "2020-04-19T08:14:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [April 19, 2020, 8:14am UTC](https://discourse.processing.org/t/what-are-pconstants/19923/1 "2020-04-19T08:14:48Z")

</div>

I am sorry if this is very trivial to ask. I couldn’t find a satisfactory definition on java sites.What are they & why are they used in begin shapes for eg beginShape(PConstants.TRIANGLES).?

---

<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:** [April 19, 2020, 8:56am UTC](https://discourse.processing.org/t/what-are-pconstants/19923/2 "2020-04-19T08:56:39Z")

</div>

[Processing.GitHub.io/processing-javadocs/core/processing/core/PConstants.html](http://Processing.GitHub.io/processing-javadocs/core/processing/core/PConstants.html)

> <https://github.com/processing/processing/blob/master/core/src/processing/core/PConstants.java>
