Problem with fill color
I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red option is not accepted.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]
{pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2}
{pgfmathsetmacro{x}{startangle + angle*i}
draw[#5] (x:#3) -- (x + angle:#3) -- cycle;
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)}
foreach [count=i] j in {#4}{
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};}}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}
I don't know if the structure of the command is not allowing any other option.
tikz-pgf tikz-styles fill polygon
add a comment |
I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red option is not accepted.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]
{pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2}
{pgfmathsetmacro{x}{startangle + angle*i}
draw[#5] (x:#3) -- (x + angle:#3) -- cycle;
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)}
foreach [count=i] j in {#4}{
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};}}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}
I don't know if the structure of the command is not allowing any other option.
tikz-pgf tikz-styles fill polygon
Indraw[#5] (x:#3) -- (x + angle:#3) -- cycle;you have nothing to fill (this is just a segment drawn twice), sofill=redis useless here. It is not clear what you want to fill. Do you want(0,0)in place of(cycle)here?
– Kpym
Apr 1 at 9:38
I want to fill the area inside the polygon and I thought that it can be done troughdrawcommand.
– mac
Apr 1 at 9:51
add a comment |
I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red option is not accepted.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]
{pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2}
{pgfmathsetmacro{x}{startangle + angle*i}
draw[#5] (x:#3) -- (x + angle:#3) -- cycle;
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)}
foreach [count=i] j in {#4}{
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};}}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}
I don't know if the structure of the command is not allowing any other option.
tikz-pgf tikz-styles fill polygon
I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red option is not accepted.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]
{pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2}
{pgfmathsetmacro{x}{startangle + angle*i}
draw[#5] (x:#3) -- (x + angle:#3) -- cycle;
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)}
foreach [count=i] j in {#4}{
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};}}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}
I don't know if the structure of the command is not allowing any other option.
tikz-pgf tikz-styles fill polygon
tikz-pgf tikz-styles fill polygon
asked Apr 1 at 9:30
macmac
732716
732716
Indraw[#5] (x:#3) -- (x + angle:#3) -- cycle;you have nothing to fill (this is just a segment drawn twice), sofill=redis useless here. It is not clear what you want to fill. Do you want(0,0)in place of(cycle)here?
– Kpym
Apr 1 at 9:38
I want to fill the area inside the polygon and I thought that it can be done troughdrawcommand.
– mac
Apr 1 at 9:51
add a comment |
Indraw[#5] (x:#3) -- (x + angle:#3) -- cycle;you have nothing to fill (this is just a segment drawn twice), sofill=redis useless here. It is not clear what you want to fill. Do you want(0,0)in place of(cycle)here?
– Kpym
Apr 1 at 9:38
I want to fill the area inside the polygon and I thought that it can be done troughdrawcommand.
– mac
Apr 1 at 9:51
In
draw[#5] (x:#3) -- (x + angle:#3) -- cycle; you have nothing to fill (this is just a segment drawn twice), so fill=red is useless here. It is not clear what you want to fill. Do you want (0,0) in place of (cycle) here?– Kpym
Apr 1 at 9:38
In
draw[#5] (x:#3) -- (x + angle:#3) -- cycle; you have nothing to fill (this is just a segment drawn twice), so fill=red is useless here. It is not clear what you want to fill. Do you want (0,0) in place of (cycle) here?– Kpym
Apr 1 at 9:38
I want to fill the area inside the polygon and I thought that it can be done trough
draw command.– mac
Apr 1 at 9:51
I want to fill the area inside the polygon and I thought that it can be done trough
draw command.– mac
Apr 1 at 9:51
add a comment |
1 Answer
1
active
oldest
votes
I am wondering why you don't follow approaches like this
documentclass{article}
usepackage{amsmath,tikz}
usetikzlibrary{shapes}
newcommandpolygon[5]{%
node[draw,#5,regular polygon,regular polygon sides=#2,minimum size=2*#3cm] (p) {};
foreach i[count=j] in {#4} {
path (p.center)--(p.corner j) node[pos=1.2] {$i$};
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

However, I think you should not define a macro for this.
If you want to follow your way, Kpym has given you the right way: use (0,0) instead of cycle. However, one has to do a bit more. Also, there will be a very thin white line.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]{%
pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
fill[#5] (x:#3) -- (x + angle:#3) -- (0,0);
draw[#5] (x:#3) -- (x + angle:#3);
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
foreach [count=i] j in {#4} {
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};
}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

1
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
My upvoted surely. Can you put, please, in first plane the gray bullet nearGamma? There is a strange closure of the exagon.
– Sebastiano
Apr 1 at 11:37
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
1
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482549%2fproblem-with-fill-color%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am wondering why you don't follow approaches like this
documentclass{article}
usepackage{amsmath,tikz}
usetikzlibrary{shapes}
newcommandpolygon[5]{%
node[draw,#5,regular polygon,regular polygon sides=#2,minimum size=2*#3cm] (p) {};
foreach i[count=j] in {#4} {
path (p.center)--(p.corner j) node[pos=1.2] {$i$};
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

However, I think you should not define a macro for this.
If you want to follow your way, Kpym has given you the right way: use (0,0) instead of cycle. However, one has to do a bit more. Also, there will be a very thin white line.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]{%
pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
fill[#5] (x:#3) -- (x + angle:#3) -- (0,0);
draw[#5] (x:#3) -- (x + angle:#3);
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
foreach [count=i] j in {#4} {
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};
}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

1
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
My upvoted surely. Can you put, please, in first plane the gray bullet nearGamma? There is a strange closure of the exagon.
– Sebastiano
Apr 1 at 11:37
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
1
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
add a comment |
I am wondering why you don't follow approaches like this
documentclass{article}
usepackage{amsmath,tikz}
usetikzlibrary{shapes}
newcommandpolygon[5]{%
node[draw,#5,regular polygon,regular polygon sides=#2,minimum size=2*#3cm] (p) {};
foreach i[count=j] in {#4} {
path (p.center)--(p.corner j) node[pos=1.2] {$i$};
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

However, I think you should not define a macro for this.
If you want to follow your way, Kpym has given you the right way: use (0,0) instead of cycle. However, one has to do a bit more. Also, there will be a very thin white line.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]{%
pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
fill[#5] (x:#3) -- (x + angle:#3) -- (0,0);
draw[#5] (x:#3) -- (x + angle:#3);
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
foreach [count=i] j in {#4} {
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};
}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

1
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
My upvoted surely. Can you put, please, in first plane the gray bullet nearGamma? There is a strange closure of the exagon.
– Sebastiano
Apr 1 at 11:37
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
1
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
add a comment |
I am wondering why you don't follow approaches like this
documentclass{article}
usepackage{amsmath,tikz}
usetikzlibrary{shapes}
newcommandpolygon[5]{%
node[draw,#5,regular polygon,regular polygon sides=#2,minimum size=2*#3cm] (p) {};
foreach i[count=j] in {#4} {
path (p.center)--(p.corner j) node[pos=1.2] {$i$};
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

However, I think you should not define a macro for this.
If you want to follow your way, Kpym has given you the right way: use (0,0) instead of cycle. However, one has to do a bit more. Also, there will be a very thin white line.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]{%
pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
fill[#5] (x:#3) -- (x + angle:#3) -- (0,0);
draw[#5] (x:#3) -- (x + angle:#3);
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
foreach [count=i] j in {#4} {
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};
}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

I am wondering why you don't follow approaches like this
documentclass{article}
usepackage{amsmath,tikz}
usetikzlibrary{shapes}
newcommandpolygon[5]{%
node[draw,#5,regular polygon,regular polygon sides=#2,minimum size=2*#3cm] (p) {};
foreach i[count=j] in {#4} {
path (p.center)--(p.corner j) node[pos=1.2] {$i$};
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

However, I think you should not define a macro for this.
If you want to follow your way, Kpym has given you the right way: use (0,0) instead of cycle. However, one has to do a bit more. Also, there will be a very thin white line.
documentclass{article}
usepackage{amsmath,tikz,tkz-euclide,pgfplots,calculator}
newcommandpolygon[5]{%
pgfmathsetmacro{angle}{360/#2}
pgfmathsetmacro{a}{(#2-1)/2}
FLOOR{a}{sol}
pgfmathsetmacro{startangle}{-90 + angle/2}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
fill[#5] (x:#3) -- (x + angle:#3) -- (0,0);
draw[#5] (x:#3) -- (x + angle:#3);
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
foreach [count=i] j in {#4} {
pgfmathsetmacro{x}{startangle - angle*(i+sol)}
node[anchor=center] at (x:#3+.3) {$j$};
}
foreach i in {1,2,...,#2} {
pgfmathsetmacro{x}{startangle + angle*i}
tkzDefPoint(x:#3){A_#2}
tkzDrawPoint(A_#2)
}
}
begin{document}
begin{tikzpicture}
draw[line width=0.3mm] (0,0) circle (1);
polygon{6}{1}{A,B,varGamma,varDelta,E,Z}{line width=0.3mm,fill=red}
end{tikzpicture}
end{document}

edited Apr 1 at 11:46
answered Apr 1 at 10:07
JouleVJouleV
12.3k22663
12.3k22663
1
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
My upvoted surely. Can you put, please, in first plane the gray bullet nearGamma? There is a strange closure of the exagon.
– Sebastiano
Apr 1 at 11:37
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
1
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
add a comment |
1
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
My upvoted surely. Can you put, please, in first plane the gray bullet nearGamma? There is a strange closure of the exagon.
– Sebastiano
Apr 1 at 11:37
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
1
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
1
1
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
The first sulotion is neat and simple. I had no idea that there was a ready to use option for regular polygons. Also I realised, as Kpym mentioned, that each time I was drawing the same segment twice, so there was no polygon to fill.
– mac
Apr 1 at 11:25
My upvoted surely. Can you put, please, in first plane the gray bullet near
Gamma? There is a strange closure of the exagon.– Sebastiano
Apr 1 at 11:37
My upvoted surely. Can you put, please, in first plane the gray bullet near
Gamma? There is a strange closure of the exagon.– Sebastiano
Apr 1 at 11:37
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@Sebastiano I will add in a while. However, I don't see anything strange.
– JouleV
Apr 1 at 11:38
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
@JouleV In the 2nd picture (2nd code).
– Sebastiano
Apr 1 at 11:40
1
1
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
Ah, ok, I will find some ways to solve. Anyway that way is not recommended clearly.
– JouleV
Apr 1 at 11:41
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482549%2fproblem-with-fill-color%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
In
draw[#5] (x:#3) -- (x + angle:#3) -- cycle;you have nothing to fill (this is just a segment drawn twice), sofill=redis useless here. It is not clear what you want to fill. Do you want(0,0)in place of(cycle)here?– Kpym
Apr 1 at 9:38
I want to fill the area inside the polygon and I thought that it can be done trough
drawcommand.– mac
Apr 1 at 9:51