Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
overlapping objects modification( paid change if done)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nicholaskyriakides  
View profile  
 More options Nov 13 2012, 1:24 am
From: nicholaskyriakides <nicholas.kyriaki...@my.westminster.ac.uk>
Date: Mon, 12 Nov 2012 22:24:26 -0800 (PST)
Local: Tues, Nov 13 2012 1:24 am
Subject: overlapping objects modification( paid change if done)

I need a modification on the application that will only allow the user to
draw WHITE filled objects on top of ONLY BLACK FILLED objects. The white
objects must overlap at least at one point with a black filled object
otherwise an error message should appear, or not draw the object at all.
Basically i need to forbid the user of drawing invinsible objects(
white-on-white), or (black on black).

The objects must overlap at least at some point otherwise this must be
forbidden.

Do you have any suggestions?

I know my question is nearly impossible to answer but i though i try all
available avenues for help. I am also offering payment if someone figures
this out(i dont know if its forbidden to state this here, if it is just
ignore me!:P).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark MacKay  
View profile  
 More options Nov 13 2012, 1:59 am
From: Mark MacKay <m...@duopixel.com>
Date: Tue, 13 Nov 2012 00:59:28 -0600
Local: Tues, Nov 13 2012 1:59 am
Subject: Re: overlapping objects modification( paid change if done)

Your requirements are a bit vague: what happens with the stroke color?
Should it take into account layers? Should it take into account the color
of the background? How are you limiting the colors to black and white? If I
select the rectangle tool, start dragging from a "banned" area, but the end
of the drag in an "allowed" area, should the rectangle still be created?

A very basic implementation of what you're trying to achieve can be done by
adding these lines at lne 2357 of svgcanvas.js:

var hitColor = evt.target.getAttribute("fill");
 var currentColor = document.querySelector("#fill_color
rect").getAttribute("fill");
if (hitColor === currentColor) {
                        alert("same color");
return;

}

Hopefully this can help you get started coding your modification.

Mark

On Tue, Nov 13, 2012 at 12:24 AM, nicholaskyriakides <

--
Mark MacKay
+011 (52) 984 125 4042
http://duopixel.ca

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »