https://github.com/koji/30days-openframeworks
30days-openFrameworks
https://github.com/koji/30days-openframeworks
cpp creative-coding openframeworks
Last synced: 11 months ago
JSON representation
30days-openFrameworks
- Host: GitHub
- URL: https://github.com/koji/30days-openframeworks
- Owner: koji
- Created: 2017-05-17T07:20:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-24T22:05:48.000Z (almost 2 years ago)
- Last Synced: 2025-03-17T15:07:45.265Z (11 months ago)
- Topics: cpp, creative-coding, openframeworks
- Language: Jupyter Notebook
- Homepage:
- Size: 58.5 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 30days-openframeworks
#### Videos
https://www.instagram.com/explore/tags/30daysopenframeworks/
Drawing Primitives
#### Line
```cpp
ofSetLineWidth(5);
ofDrawLine(x1, y1, x2, y2);
```
```java
strokeWeight(5);
line(x1, y1, x2, y2);
```
#### Rect
```cpp
ofRect(x, y, w, h);
```
```java
rect(x, y, w, h);
```
#### Triangle
```cpp
ofTriangle(x1, y1, x2, y2, x3, y3);
```
```java
triangle(x1, y1, x2, y2, x3, y3);
```
#### Circle
```cpp
ofDrawCircle(x, y, r);
```
```java
ellipse(x, y, r);
```
#### fill & nofill
```cpp
ofFill(r, g, b, alpha);
ofNoFill();
```
```java
fill(r, g, b, alpha);
noFill();
```
#### dot
```cpp
ofPoint(x, y);
```
```java
dot(x, y);
```
```cpp
```
```java
```
```cpp
```
```java
```
```cpp
```
```java
```
```cpp
```
```java
```
```cpp
```
```java
```
```cpp
```
```java
```
```cpp
```
```java
```