Book a Demo

Author Topic: Gradients in subshapes  (Read 6225 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Gradients in subshapes
« on: March 04, 2015, 09:17:52 pm »
Hey everybody,


I've got this stereotype with an unpleasantly large number of tagged values, which I need to display in different boxes in a single shape. I'm using subshapes with rectangles in a top-down layout.

Problem is, the color gradient is applied separately in each subshape, so I end up with a very stripy-looking beast which is hard to read.

Is there a way around this?

I'm looking for something I can set in the shape script or the diagram definition, but I'm coming up empty. I can minimize the effect by using white as the fill color, but I can't make it go away completely.

I'm on 11.1.1112.


Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Gradients in subshapes
« Reply #1 on: March 04, 2015, 10:07:00 pm »
There was an option somewhere in the depth of the options to turn of the gradient completely. Besides using white that would have been my only escape.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Gradients in subshapes
« Reply #2 on: March 04, 2015, 10:37:18 pm »
Yeah, but that's at the user end. I want to control it in the MDG Technology.

/U
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Gradients in subshapes
« Reply #3 on: March 04, 2015, 10:38:26 pm »
Hmmm... Maybe there ought to be support in an MDG Technology to control user-side options....   ;D
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Gradients in subshapes
« Reply #4 on: March 04, 2015, 10:51:04 pm »
Backdoor programming via the registry and then restart EA. Nuke 'em all.

q.


KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Gradients in subshapes
« Reply #5 on: March 05, 2015, 09:16:09 am »
One thing you could try is to wrap all your drawing commands in a single startpath-endpath block and fill once at the end. Something like this:

Code: [Select]
shape main
{
      startpath();
      rectangle(0,0,50,50);
      rectangle(50,50,100,100);
      endpath();
      fillandstrokepath();
}
The Sparx Team
[email protected]

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Gradients in subshapes
« Reply #6 on: March 06, 2015, 12:54:30 am »
That doesn't seem to make any difference, but thanks anyway.

/U
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Gradients in subshapes
« Reply #7 on: March 07, 2015, 12:42:29 am »
Oh dear.

Oh dear, oh dear, oh dear.

What is a rectangle?  :-[

In your subshape,
Code: [Select]
LineTo(100, 0);
LineTo(100, 100);
LineTo(0, 100);
LineTo(0, 0);

Hey presto, rectangle, no fill, no gradient.
Ta-daa!  ;D

Happy weekend, viewers.

/UffePuff
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Gradients in subshapes
« Reply #8 on: March 07, 2015, 01:03:01 am »
Sometimes you can't see the trees because of the forest  ;D

Geert