numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

'face()' and 'facev()' cannot be made transparent #43

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Describe the bug The two draw functions face() and facev() do not support a transparent mode with the style #, where only their border is drawn.

To Reproduce Steps to reproduce the behavior:

  1. Execute draw face(0,0, 5,0, "#")
  2. A rectangular face, which is not tranparent, is created

Expected behavior The face should be transparent with only the border visible.

Screenshots grafik

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

If the style string contains "#" then we only draw the boundary using strict lines made out if mglGraph::Line(). If the style string contains "@", then we'll draw both the boundary and the face itself using the first colour for the face and the second for the boundary (like in draw circle(0,0,5, "@rg")).

Implementation to be found in void Plot::create2dDrawing(vector<string>& vDrawVector) and void Plot::create3dDrawing(vector<string>& vDrawVector)

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST