Author Topic: Sunset roadmaps  (Read 4716 times)

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Sunset roadmaps
« on: January 24, 2022, 07:36:52 am »
I've just joined an organization and there standard for roadmaps are in the format of sunset type. Kind of t like this but prettier.
https://digital1st.co.uk/wp-content/uploads/2018/07/roadmap.png
Has anyone one written any shapescripts to do that format and willing to share?
Happy to help
:)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8597
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Sunset roadmaps
« Reply #1 on: January 24, 2022, 09:29:59 am »
I've just joined an organization and their standard for roadmaps are in the format of sunset type. Kind of t like this but prettier.
https://digital1st.co.uk/wp-content/uploads/2018/07/roadmap.png
Has anyone written any shapescripts to do that format and is willing to share?
Hi Sunshine,
It's not clear to me where the shapescripts come in.  Drawing elements with rounded corners?  Or are you talking about the sunset effect on the diagram?
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Sunset roadmaps
« Reply #2 on: January 24, 2022, 09:57:58 am »
Was taking about the sunset effect on the diagram rather than the shapes which by the way need to be represented by small circles.

Since my last post I've had bit of an experiment with shapescript on boundary object.

I created a stereotype for a boundary called "Sunset" and this is what I've got so far.
Code: [Select]
shape main{
setlinestyle("solid");
rectangle(0, 0, 100, 100);

//3 sun auras
Arc(70, -30, 140, 30, 0, 0, 100, 27);

//Arc(50, -50, 150, 50, 0, 0, 100, 50);
Arc(45, -50, 150, 55, 0, 0, 100, 50);

Arc(20, -70, 180, 85, 0, 0, 100, 50);

// 3 sunbeams
setlinestyle("dot");
moveto(100, 0);
lineto(0, 100);
moveto(100, 0);
lineto(0, 50);
moveto(100, 0);
lineto(50, 100);
}
Haven't figured out how to colour the aura's different shades of grey yet.

Happy to help
:)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8063
  • Karma: +118/-20
    • View Profile
Re: Sunset roadmaps
« Reply #3 on: January 24, 2022, 11:16:44 am »
I would probably just have an emf alternate image on the boundary, but here's a version of your script with using different shades of grey for the different arcs.

Code: [Select]
shape main{
setlinestyle("solid");
SetFillColor(165,165,165);
rectangle(0,0,100,100);

//3 sun auras
SetFillColor(195,195,195);
startpath();
MoveTo(100,0);
LineTo(70,0);
ArcTo(20, -85, 180, 85, 0, 0, 100, 100);
LineTo(100,0);
EndPath();
FillAndStrokePath();

SetFillColor(225,225,225);
startpath();
MoveTo(100,0);
LineTo(70,0);
ArcTo(50, -50, 150, 50, 0, 0, 100, 100);
LineTo(100,0);
EndPath();
FillAndStrokePath();

SetFillColor(255,255,255);
startpath();
MoveTo(100,0);
LineTo(70,0);
ArcTo(70, -30, 130, 30, 0, 0, 100, 100);
LineTo(100,0);
EndPath();
FillAndStrokePath();

// 3 sunbeams
setlinestyle("dot");
moveto(100, 0);
lineto(0, 100);
moveto(100, 0);
lineto(0, 50);
moveto(100, 0);
lineto(50, 100);
}

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Sunset roadmaps
« Reply #4 on: January 25, 2022, 04:54:59 pm »
Thanks Eve, That's perfect just what I was after.
Must admit was thinking along the same lines regarding using an EMF image. However, I wanted to persevere with the shape script as I can foresee there may be a need for variations such as the number of sunbeams and auras. For example 3x3, 3x4, 4x3 and 4x4 etc.
Happy to help
:)