We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hello all,
I just teach myself PShape with the great tutorial.
I want to make a cloud with one big base sphere (wide and flat) and 2 spheres upon.
I encounter some problems.
using createShape (SPHERE) I wanted to to pass 6 params, 3 for pos and 3 for size (w,h,d). But it occured to me I can pass only one numerical parameter, size. So to make a flat base sphere for the cloud proves difficult.
2nd I wanted to place the two smaller spheres upon the main part (like a camel looking cloud). But then, I need the 2 spheres have a offset in their Position from 0,0,0 - how when I can't pass pos as params?
this is important since I wanted to use GROUP finally to have the cloud as one shape. For the group I'd need the 3 spheres at different positions.
thank you!
Chrisir ;-)
Answers
my code is similar to this
solved.
solution:
use createShape (SPHERE) with one parameter (size), then use scale and translate to modify
for fill and stroke: head.setStroke and head.setFill (gotta use color type!)
for noFill and noStroke: head.setStroke(false) and head.setFill(false)
;-)