pixelmaid / dresscode_v0.5 Goto Github PK
View Code? Open in Web Editor NEWDress Code alpha
Dress Code alpha
groups that contain expanded polygons do not merge correctly
g = group();
repeat i=1:2:
e = expand(weight(ellipse(100,20*i),10));
add(g,e);
end
merge(g);
I believe there is a something like a.location if a has already been created as a rect, poly, or ellipse that accesses the location of a? It does not seem to work for me.
Lines don't like being in a group.
When a line is added to a group or a part of a group, the lines in the group shift to different coordinates.
example code:
line1=line(100,100,200,200);
line2=line(200,200,300,100);
group(line1,line2); // example of just a line group
e1=ellipse(100,100);
e2=ellipse(200,200);
h=group(e1,e2,line2);
add(h,line1); // example of a line added to a group going to a different coordinate
line(point1, point2)
You can only subtract an object if it's not completely within another object. (Sorry this is strangely worded--- I've included an example that'll better show you what I'm talking about.
//This works because a small corner of test2 is not within test1.
test1=poly(300,300,4,40);
test2=ellipse(300,310,100);
myTest=test2-test1;
fill(myTest,RED);
//This does not work.
test1=poly(100,100,4,40);
test2=ellipse(100,100,100);
myTest=test2-test1;
fill(myTest,RED);
The object fill defaults to white after it is clipped.
example code with one object, one color:
a = fill(poly(100,100,3,80),RED);
frame = noFill(ellipse(100,100,100));
aCrop = frame && a;
example code with group of one group, two colors:
//shapes
a=poly(100,100,3,80);
b=rect(200,100,50,80);
//fill
fill(a,RED);
fill(b,BLUE);
//group
c=group(a,b);
//frame
frame=noFill(ellipse(150,100,100));
//clip
myPicture = frame && c;
g = group();
repeat i=1:2:
e = expand(weight(ellipse(100,20*i),10));
add(g,e);
end
g2= g[0]+g[1];
Can't import svgs into DressCode.
Tested using simple SVGs made in Inkscape and simple SVGs downloaded from OpenClipArt.com.
Coordinates for curve aren't being set to the correct locations.
need to introduce ordering methods to shapes to move them up or down
issue
c = curve(85, 20, 10, 10, 90, 90, 15, 80);
expand(c);
c will not reference expanded curve
must do
c = expand(c);
Only polygons and lines rotate about a given point.
a=ellipse(300,300,150,30);
pt=point(400,400);
rotate(a,45,pt);
DressCode does not recognize floats starting with a decimal point.
ex.
3 is valid.
3.0 is valid.
0.3 is valid.
.3 is not valid --> recognizes as 3
only curve, line and ellipse currently have this functionality. Also should be extended to move
relative positioning within groups is confusing when trying to move objects inside of a group. Object should be moved to the relative coordinates within the group that match the expected absolute coordinates of the screen entered in the move command.
Groups don't rotate at the correct angle.
example code:
a=ellipse(300,200);
b=rect(300,400);
c=group(a,b);
rotate(c,5);
When lines are grouped together, the lines disappear, but the "centers" of each line remain.
Maybe this is an issue only when opening Manager through Eclipse, but it would be nice if code can be copied and later pasted while being worked on :)
Right now I don't seem to have this function.
Functions require a return statement or else will not run. Should the return statement be optional? Thanks.
Possible errors in while loop
Lines do not rotate around axis; cannot move line after it's rotated.
Example Code:
x1=300
y1=500
x2=300
y2=300
base=line(x1,y1,x2,y2);
rotate(base,30);
move(base,300,300);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.