Giter VIP home page Giter VIP logo

dresscode_v0.5's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dresscode_v0.5's Issues

accessing location of a shape

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.

Line Grouping

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

Subtracting Objects in Objects

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);

Colors after Clip

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;

SVG Imports

Can't import svgs into DressCode.

Tested using simple SVGs made in Inkscape and simple SVGs downloaded from OpenClipArt.com.

Decimal Points

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

relative positioning within groups

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.

Rotating Groups

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);

Grouping lines together

When lines are grouped together, the lines disappear, but the "centers" of each line remain.

Copying and Pasting in DressCode

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.

Function Returns

Functions require a return statement or else will not run. Should the return statement be optional? Thanks.

Rotating Lines

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.