Paint Program

For questions about using Classic.

Post » Mon Dec 29, 2008 11:37 am

can i make application like paint in construct
B
2
S
1
G
4
Posts: 48
Reputation: 1,296

Post » Mon Dec 29, 2008 12:59 pm

It's technically possible. Canvas object allows to do basic painting operations, and Image Manipulator object can save/load images to files.
B
6
S
3
G
6
Posts: 219
Reputation: 3,013

Post » Mon Dec 29, 2008 10:58 pm

yes you can, easily.

just use lerp for line drawing operations, sin cos for ellipse drawing, boxes are just using line drawings, same for polygons. and beziers can be done using Qarp.

im not sure of how to do fill
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Dec 30, 2008 7:23 am

thanks
but could you please make a smaaall paint.cap so that i can play with it
B
2
S
1
G
4
Posts: 48
Reputation: 1,296

Post » Tue Dec 30, 2008 12:09 pm

[quote="hkg.mahwa":3sm1woxj]thanks
but could you please make a smaaall paint.cap so that i can play with it[/quote:3sm1woxj]

This is my old Paint example (works good with 0.98):
viewtopic.php?f=16&p=16907
B
6
S
3
G
7
Posts: 138
Reputation: 3,547

Post » Wed Dec 31, 2008 6:44 am

thanks
but i could not understand lerp and Qarp
thanks patryk for paint.cap
B
2
S
1
G
4
Posts: 48
Reputation: 1,296

Post » Wed Dec 31, 2008 2:21 pm

Lerp and Qarp are explained in System Expressions.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Wed Dec 31, 2008 6:52 pm

http://en.wikipedia.org/wiki/Bezier_curves

this is what they do: lerp does this



Qarp does this



could you implement something for cubic curves, they're the most difficult, and the most confusing to set up (i know you can just do lerps but still)
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Jan 01, 2009 12:37 am

Any plans for a future pressure sensitive support for Wacom tablets?
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Thu Jan 01, 2009 1:21 am

[quote="QuaziGNRLnose":2k3gi5h6]http://en.wikipedia.org/wiki/Bezier_curves

this is what they do: lerp does this



Qarp does this



could you implement something for cubic curves, they're the most difficult, and the most confusing to set up (i know you can just do lerps but still)[/quote:2k3gi5h6]

Theyre either lerp(qarp(a,b,x), quarp(a,b,x), x) or quarp (lerp(a,b,x), lerp(a,b,x), x)... And I'm not exactly sure if those two are the same thing, I won't bother to solve the equations now X)... But you could make your own function with function object, unless the cubic equation gets implemented.
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests