diff options
author | Norbert Preining <norbert@preining.info> | 2020-03-04 03:02:32 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-03-04 03:02:32 +0000 |
commit | 19d25b8009801aa98ea2f46b45c37c257f990491 (patch) | |
tree | c0da70fbab26feff40e87df289ae797917df8419 /graphics/asymptote/drawpath3.cc | |
parent | b78f5a6705512314d6fe42fd5144c5f8e5d484ce (diff) |
CTAN sync 202003040302
Diffstat (limited to 'graphics/asymptote/drawpath3.cc')
-rw-r--r-- | graphics/asymptote/drawpath3.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/graphics/asymptote/drawpath3.cc b/graphics/asymptote/drawpath3.cc index 3a66247498..2ba8d7c6a8 100644 --- a/graphics/asymptote/drawpath3.cc +++ b/graphics/asymptote/drawpath3.cc @@ -30,7 +30,7 @@ bool drawPath3::write(prcfile *out, unsigned int *, double, groupsmap&) for(Int i=0; i <= n; ++i) controls[i]=g.point(i); - out->addLine(n+1,controls,color); + out->addLine(n+1,controls,diffuse); } else { int m=3*n+1; triple *controls=new(UseGC) triple[m]; @@ -44,7 +44,7 @@ bool drawPath3::write(prcfile *out, unsigned int *, double, groupsmap&) } controls[++k]=g.precontrol(n); controls[++k]=g.point(n); - out->addBezierCurve(m,controls,color); + out->addBezierCurve(m,controls,diffuse); } return true; @@ -62,8 +62,7 @@ bool drawPath3::write(jsfile *out) drawElement::centerIndex=centerIndex; } else drawElement::centerIndex=0; - RGBAColour Black(0.0,0.0,0.0,color.A); - setcolors(false,Black,color,Black,1.0,0.0,0.04,out); + setcolors(false,diffuse,emissive,specular,shininess,metallic,fresnel0,out); for(Int i=0; i < n; ++i) { if(g.straight(i)) { @@ -83,8 +82,7 @@ void drawPath3::render(double size2, const triple& b, const triple& B, Int n=g.length(); if(n == 0 || invisible) return; - RGBAColour Black(0.0,0.0,0.0,color.A); - setcolors(false,Black,color,Black,1.0,0.0,0.04); + setcolors(false,diffuse,emissive,specular,shininess,metallic,fresnel0); setMaterial(material1Data,drawMaterial1); |