# p5play Creator License

This License Agreement ("Agreement") is made between Quinton Ashley, the sole copyright owner of p5play ("Licensor") and an individual, organization, or company ("Licensee") that is using p5play.

**_For use in Computer Science (CS) education, see the [q5play Educational License](https://q5play.org/teach), which includes use of p5play._**

## 1. License Grant

The Licensee is granted a non-exclusive, world-wide, royalty-free right to use the p5play software library ("Content") for **personal, professional, and commercial purposes**, subject to the following restrictions.

### 1a. Permitted Commercial Use

The Licensee may use the Content to create, publish, and sell software, games, or applications without the requirement to make their own application source code public.

### 1b. Limited Redistribution

The Licensee may host or distribute verbatim, unmodified copies of the Content only as part of their own applications. "Verbatim copies" means exact duplicates of the Content as provided by the Licensor. The Licensee may not sell, sublicense, or redistribute the Content as a standalone library or as part of a competing software development kit (SDK).

### 1c. Derivative Work Restrictions

Modification, enhancement, or adaptation of the Content ("Derivative Work") can be done privately, but any Derivative Work that is shared with others must be shared under the same terms as this original Agreement. Derivative Works must be created for the sole purpose of improving the Content for the benefit of all users of p5play.

### 1d. Computer Science Education Restriction

With this free License, the Licensee is **expressly forbidden** from using the Content for the purpose of teaching computer science, programming, game development, or the use of p5play itself.

- **Prohibited Use:** This includes, but is not limited to, use in schools, universities, coding bootcamps, online programming courses, or paid CS instructional content.
- **Permitted Use:** The Content may be used to create interactive educational media for other subjects (e.g., teaching math, cooking, or history), provided the application does not instruct the user on how to code or use p5play.
- **Ambiguity:** In cases of ambiguity regarding subject matter, the Licensor reserves the right to determine if the use falls under "CS Education."

Any use for CS education requires the [q5play Educational License](https://q5play.org/teach), which includes use of p5play.

### 1e. No Military Use

The Licensee is expressly forbidden from using the Content in projects that are directly endorsed by military organizations, arms manufacturers, or military contractors.

### 1f. Attribution Required

The Licensee must publicly display appropriate credit to the Licensor. Use of the "made with p5play" Loading Screen is required for all published work, unless the work is published on an online code editing platform or other web app that was approved by the Licensor to be exempt from this requirement.

Attribution can also be made at the top of the primary script file or in a README file.

Example Attribution:

```js
/**
 * Made with p5play!
 * https://p5play.org
 */
```

## 2. Licensee Eligibility

Any individual or entity using p5play is required to comply with this Agreement. Use of p5play constitutes acceptance of these terms.

## 3. "Learn p5play" Interactive Textbook Access

The Licensee is granted access to the ["Learn p5play"](https://p5play.org/learn) interactive textbook for personal learning and evaluation only. Use of these materials for group instruction or classroom settings is prohibited without an Educational License.

If you're using p5play to complete academic coursework, but you don't have a student account, please purchase your own [Educational License](https://ko-fi.com/s/738fa58bed).

## 4. No Warranty

The Content is provided "as is." The Licensor makes no warranties, express or implied, including without limitation any implied warranty of merchantability or fitness for a particular purpose.

## 5. Limitation of Liability

The Licensor shall not be liable for any damages suffered by the Licensee resulting from the use or inability to use the Content. Licensees must comply with all applicable laws and are fully liable for any content they create with p5play.

## 6. Termination

This Agreement terminates automatically, without notice from the Licensor, if the Licensee fails to comply with any term(s) of this Agreement.

## 7. Entire Agreement

This Agreement constitutes the entire agreement between the parties. To the extent possible, if any provision is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If it cannot be reformed, it shall be severed without affecting the remaining terms.
