How to copy given figure and rotate it as figure.
documentclass[12pt,pstricks,border=15pt]{standalone}
usepackage{newcent}
begin{document}
begin{pspicture}(0,0)(3,3)
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{
psarcn(3,0){3}{180}{90}
psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}
psarc(2,0){2}{90}{180}
}
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{
psarc(0,3){3}{-90}{0}
psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}
psarc(2,0){2}{90}{180}
closepath
}
end{pspicture}
end{document}
It produce:
How to create as the following:
In PStricks, is there a command to copy given figure? OR I have to draw 4 figures ...
pstricks
add a comment |
documentclass[12pt,pstricks,border=15pt]{standalone}
usepackage{newcent}
begin{document}
begin{pspicture}(0,0)(3,3)
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{
psarcn(3,0){3}{180}{90}
psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}
psarc(2,0){2}{90}{180}
}
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{
psarc(0,3){3}{-90}{0}
psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}
psarc(2,0){2}{90}{180}
closepath
}
end{pspicture}
end{document}
It produce:
How to create as the following:
In PStricks, is there a command to copy given figure? OR I have to draw 4 figures ...
pstricks
add a comment |
documentclass[12pt,pstricks,border=15pt]{standalone}
usepackage{newcent}
begin{document}
begin{pspicture}(0,0)(3,3)
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{
psarcn(3,0){3}{180}{90}
psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}
psarc(2,0){2}{90}{180}
}
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{
psarc(0,3){3}{-90}{0}
psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}
psarc(2,0){2}{90}{180}
closepath
}
end{pspicture}
end{document}
It produce:
How to create as the following:
In PStricks, is there a command to copy given figure? OR I have to draw 4 figures ...
pstricks
documentclass[12pt,pstricks,border=15pt]{standalone}
usepackage{newcent}
begin{document}
begin{pspicture}(0,0)(3,3)
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{
psarcn(3,0){3}{180}{90}
psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}
psarc(2,0){2}{90}{180}
}
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{
psarc(0,3){3}{-90}{0}
psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}
psarc(2,0){2}{90}{180}
closepath
}
end{pspicture}
end{document}
It produce:
How to create as the following:
In PStricks, is there a command to copy given figure? OR I have to draw 4 figures ...
pstricks
pstricks
asked Dec 17 '18 at 15:13
chishimotojichishimotoji
656318
656318
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
documentclass[12pt,pstricks,border=15pt]{standalone}
begin{document}
defmyFig{%
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
}%
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
closepath
}%
}
begin{pspicture}[showgrid](0,0)(6,6)
rput(0,3){myFig}
rput{-270}(6,3){myFig}
rput{180}(6,3){myFig}
rput{-90}(0,3){myFig}
end{pspicture}
end{document}
add a comment |
Saving more characters.
documentclass[pstricks,border=1pt]{standalone}
degrees[4]
defa#1{pscustom[fillcolor=#1]{%
psarcn(3,0){3}{2}{1}psarcn(1,3){2}{0}{-1}psarc(1,2){1}{-1}{0}psarc(2,0){2}{1}{2}}}
begin{document}
begin{pspicture}[fillstyle=solid,opacity=.5](6,6)
foreach p/t in {0/0,0/-1,6/-3,6/2}{rput{t}(p,3){a{blue}rput{2}(3,3){a{yellow}}}}
end{pspicture}
end{document}
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%2f466222%2fhow-to-copy-given-figure-and-rotate-it-as-figure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
documentclass[12pt,pstricks,border=15pt]{standalone}
begin{document}
defmyFig{%
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
}%
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
closepath
}%
}
begin{pspicture}[showgrid](0,0)(6,6)
rput(0,3){myFig}
rput{-270}(6,3){myFig}
rput{180}(6,3){myFig}
rput{-90}(0,3){myFig}
end{pspicture}
end{document}
add a comment |
documentclass[12pt,pstricks,border=15pt]{standalone}
begin{document}
defmyFig{%
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
}%
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
closepath
}%
}
begin{pspicture}[showgrid](0,0)(6,6)
rput(0,3){myFig}
rput{-270}(6,3){myFig}
rput{180}(6,3){myFig}
rput{-90}(0,3){myFig}
end{pspicture}
end{document}
add a comment |
documentclass[12pt,pstricks,border=15pt]{standalone}
begin{document}
defmyFig{%
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
}%
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
closepath
}%
}
begin{pspicture}[showgrid](0,0)(6,6)
rput(0,3){myFig}
rput{-270}(6,3){myFig}
rput{180}(6,3){myFig}
rput{-90}(0,3){myFig}
end{pspicture}
end{document}
documentclass[12pt,pstricks,border=15pt]{standalone}
begin{document}
defmyFig{%
pscustom[fillstyle=solid,fillcolor=yellow,opacity=.5]{%
psarcn(3,0){3}{180}{90}psarcn(1,3){2}{0}{-90}
psarc(1,2){1}{-90}{0}psarc(2,0){2}{90}{180}
}%
pscustom[fillstyle=solid,fillcolor=blue,opacity=.5]{%
psarc(0,3){3}{-90}{0}psarcn(1,3){2}{0}{-90}
psarcn(2,1){1}{180}{90}psarc(2,0){2}{90}{180}
closepath
}%
}
begin{pspicture}[showgrid](0,0)(6,6)
rput(0,3){myFig}
rput{-270}(6,3){myFig}
rput{180}(6,3){myFig}
rput{-90}(0,3){myFig}
end{pspicture}
end{document}
answered Dec 17 '18 at 15:34
HerbertHerbert
272k24411724
272k24411724
add a comment |
add a comment |
Saving more characters.
documentclass[pstricks,border=1pt]{standalone}
degrees[4]
defa#1{pscustom[fillcolor=#1]{%
psarcn(3,0){3}{2}{1}psarcn(1,3){2}{0}{-1}psarc(1,2){1}{-1}{0}psarc(2,0){2}{1}{2}}}
begin{document}
begin{pspicture}[fillstyle=solid,opacity=.5](6,6)
foreach p/t in {0/0,0/-1,6/-3,6/2}{rput{t}(p,3){a{blue}rput{2}(3,3){a{yellow}}}}
end{pspicture}
end{document}
add a comment |
Saving more characters.
documentclass[pstricks,border=1pt]{standalone}
degrees[4]
defa#1{pscustom[fillcolor=#1]{%
psarcn(3,0){3}{2}{1}psarcn(1,3){2}{0}{-1}psarc(1,2){1}{-1}{0}psarc(2,0){2}{1}{2}}}
begin{document}
begin{pspicture}[fillstyle=solid,opacity=.5](6,6)
foreach p/t in {0/0,0/-1,6/-3,6/2}{rput{t}(p,3){a{blue}rput{2}(3,3){a{yellow}}}}
end{pspicture}
end{document}
add a comment |
Saving more characters.
documentclass[pstricks,border=1pt]{standalone}
degrees[4]
defa#1{pscustom[fillcolor=#1]{%
psarcn(3,0){3}{2}{1}psarcn(1,3){2}{0}{-1}psarc(1,2){1}{-1}{0}psarc(2,0){2}{1}{2}}}
begin{document}
begin{pspicture}[fillstyle=solid,opacity=.5](6,6)
foreach p/t in {0/0,0/-1,6/-3,6/2}{rput{t}(p,3){a{blue}rput{2}(3,3){a{yellow}}}}
end{pspicture}
end{document}
Saving more characters.
documentclass[pstricks,border=1pt]{standalone}
degrees[4]
defa#1{pscustom[fillcolor=#1]{%
psarcn(3,0){3}{2}{1}psarcn(1,3){2}{0}{-1}psarc(1,2){1}{-1}{0}psarc(2,0){2}{1}{2}}}
begin{document}
begin{pspicture}[fillstyle=solid,opacity=.5](6,6)
foreach p/t in {0/0,0/-1,6/-3,6/2}{rput{t}(p,3){a{blue}rput{2}(3,3){a{yellow}}}}
end{pspicture}
end{document}
edited Dec 18 '18 at 5:07
answered Dec 17 '18 at 18:32
God Must Be CrazyGod Must Be Crazy
5,13511039
5,13511039
add a comment |
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%2f466222%2fhow-to-copy-given-figure-and-rotate-it-as-figure%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