Color shading a wind turbine blade in tikz
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
I am pretty new to tikz and my goal is to draw a generic wind turbine blade such that I can fill it with colors shading from green (left) to red (right)
like a colormap plot I hope you get the idea.
With my current skills I could draw the blade in a line by line fashion, but I would like to learn how to do it in a "smarter" way such that I easily can color the figure within the lines.
tikz-pgf
add a comment
|
I am pretty new to tikz and my goal is to draw a generic wind turbine blade such that I can fill it with colors shading from green (left) to red (right)
like a colormap plot I hope you get the idea.
With my current skills I could draw the blade in a line by line fashion, but I would like to learn how to do it in a "smarter" way such that I easily can color the figure within the lines.
tikz-pgf
Please show the code you used to draw the blade
– Someone
May 28 at 11:20
This is just a picture, i could draw the blade but i am looking for a method to avoid drawing it line for line
– Nicklas Koldkjær
May 28 at 11:28
add a comment
|
I am pretty new to tikz and my goal is to draw a generic wind turbine blade such that I can fill it with colors shading from green (left) to red (right)
like a colormap plot I hope you get the idea.
With my current skills I could draw the blade in a line by line fashion, but I would like to learn how to do it in a "smarter" way such that I easily can color the figure within the lines.
tikz-pgf
I am pretty new to tikz and my goal is to draw a generic wind turbine blade such that I can fill it with colors shading from green (left) to red (right)
like a colormap plot I hope you get the idea.
With my current skills I could draw the blade in a line by line fashion, but I would like to learn how to do it in a "smarter" way such that I easily can color the figure within the lines.
tikz-pgf
tikz-pgf
edited May 28 at 13:21
ian
2868 bronze badges
2868 bronze badges
asked May 28 at 11:18
Nicklas KoldkjærNicklas Koldkjær
183 bronze badges
183 bronze badges
Please show the code you used to draw the blade
– Someone
May 28 at 11:20
This is just a picture, i could draw the blade but i am looking for a method to avoid drawing it line for line
– Nicklas Koldkjær
May 28 at 11:28
add a comment
|
Please show the code you used to draw the blade
– Someone
May 28 at 11:20
This is just a picture, i could draw the blade but i am looking for a method to avoid drawing it line for line
– Nicklas Koldkjær
May 28 at 11:28
Please show the code you used to draw the blade
– Someone
May 28 at 11:20
Please show the code you used to draw the blade
– Someone
May 28 at 11:20
This is just a picture, i could draw the blade but i am looking for a method to avoid drawing it line for line
– Nicklas Koldkjær
May 28 at 11:28
This is just a picture, i could draw the blade but i am looking for a method to avoid drawing it line for line
– Nicklas Koldkjær
May 28 at 11:28
add a comment
|
1 Answer
1
active
oldest
votes
With tikz shade
command:
documentclass{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}
shadedraw[left color=green,right color=red] (0.6315,3.6977) .. controls (0.7398,3.5492) and (0.7503,3.3778) .. (0.6550,3.3151) .. controls (0.5597,3.2523) and (0.3948,3.3219) .. (0.2865,3.4705) .. controls (0.1783,3.6190) and (0.1678,3.7903) .. (0.2631,3.8531) .. controls (0.3583,3.9158) and (0.5233,3.8463) .. (0.6315,3.6977) -- cycle
(0.2221,3.8172) .. controls (0.2221,3.8172) and (0.6084,4.1358) .. (0.8203,4.2755) .. controls (0.8203,4.2755) and (1.1664,5.1021) .. (1.2321,5.1457) .. controls (1.3934,5.2527) and (5.8407,7.6417) .. (6.7093,8.1135) .. controls (6.7482,8.1346) and (6.8111,8.1615) .. (6.8414,8.1290) .. controls (6.8791,8.0885) and (6.8541,7.9998) .. (6.8103,7.9659) .. controls (5.0401,6.5957) and (0.6494,3.3122) .. (0.6494,3.3122);
end{tikzpicture}
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/4.0/"u003ecc by-sa 4.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%2f493025%2fcolor-shading-a-wind-turbine-blade-in-tikz%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
With tikz shade
command:
documentclass{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}
shadedraw[left color=green,right color=red] (0.6315,3.6977) .. controls (0.7398,3.5492) and (0.7503,3.3778) .. (0.6550,3.3151) .. controls (0.5597,3.2523) and (0.3948,3.3219) .. (0.2865,3.4705) .. controls (0.1783,3.6190) and (0.1678,3.7903) .. (0.2631,3.8531) .. controls (0.3583,3.9158) and (0.5233,3.8463) .. (0.6315,3.6977) -- cycle
(0.2221,3.8172) .. controls (0.2221,3.8172) and (0.6084,4.1358) .. (0.8203,4.2755) .. controls (0.8203,4.2755) and (1.1664,5.1021) .. (1.2321,5.1457) .. controls (1.3934,5.2527) and (5.8407,7.6417) .. (6.7093,8.1135) .. controls (6.7482,8.1346) and (6.8111,8.1615) .. (6.8414,8.1290) .. controls (6.8791,8.0885) and (6.8541,7.9998) .. (6.8103,7.9659) .. controls (5.0401,6.5957) and (0.6494,3.3122) .. (0.6494,3.3122);
end{tikzpicture}
end{document}
add a comment
|
With tikz shade
command:
documentclass{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}
shadedraw[left color=green,right color=red] (0.6315,3.6977) .. controls (0.7398,3.5492) and (0.7503,3.3778) .. (0.6550,3.3151) .. controls (0.5597,3.2523) and (0.3948,3.3219) .. (0.2865,3.4705) .. controls (0.1783,3.6190) and (0.1678,3.7903) .. (0.2631,3.8531) .. controls (0.3583,3.9158) and (0.5233,3.8463) .. (0.6315,3.6977) -- cycle
(0.2221,3.8172) .. controls (0.2221,3.8172) and (0.6084,4.1358) .. (0.8203,4.2755) .. controls (0.8203,4.2755) and (1.1664,5.1021) .. (1.2321,5.1457) .. controls (1.3934,5.2527) and (5.8407,7.6417) .. (6.7093,8.1135) .. controls (6.7482,8.1346) and (6.8111,8.1615) .. (6.8414,8.1290) .. controls (6.8791,8.0885) and (6.8541,7.9998) .. (6.8103,7.9659) .. controls (5.0401,6.5957) and (0.6494,3.3122) .. (0.6494,3.3122);
end{tikzpicture}
end{document}
add a comment
|
With tikz shade
command:
documentclass{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}
shadedraw[left color=green,right color=red] (0.6315,3.6977) .. controls (0.7398,3.5492) and (0.7503,3.3778) .. (0.6550,3.3151) .. controls (0.5597,3.2523) and (0.3948,3.3219) .. (0.2865,3.4705) .. controls (0.1783,3.6190) and (0.1678,3.7903) .. (0.2631,3.8531) .. controls (0.3583,3.9158) and (0.5233,3.8463) .. (0.6315,3.6977) -- cycle
(0.2221,3.8172) .. controls (0.2221,3.8172) and (0.6084,4.1358) .. (0.8203,4.2755) .. controls (0.8203,4.2755) and (1.1664,5.1021) .. (1.2321,5.1457) .. controls (1.3934,5.2527) and (5.8407,7.6417) .. (6.7093,8.1135) .. controls (6.7482,8.1346) and (6.8111,8.1615) .. (6.8414,8.1290) .. controls (6.8791,8.0885) and (6.8541,7.9998) .. (6.8103,7.9659) .. controls (5.0401,6.5957) and (0.6494,3.3122) .. (0.6494,3.3122);
end{tikzpicture}
end{document}
With tikz shade
command:
documentclass{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}
shadedraw[left color=green,right color=red] (0.6315,3.6977) .. controls (0.7398,3.5492) and (0.7503,3.3778) .. (0.6550,3.3151) .. controls (0.5597,3.2523) and (0.3948,3.3219) .. (0.2865,3.4705) .. controls (0.1783,3.6190) and (0.1678,3.7903) .. (0.2631,3.8531) .. controls (0.3583,3.9158) and (0.5233,3.8463) .. (0.6315,3.6977) -- cycle
(0.2221,3.8172) .. controls (0.2221,3.8172) and (0.6084,4.1358) .. (0.8203,4.2755) .. controls (0.8203,4.2755) and (1.1664,5.1021) .. (1.2321,5.1457) .. controls (1.3934,5.2527) and (5.8407,7.6417) .. (6.7093,8.1135) .. controls (6.7482,8.1346) and (6.8111,8.1615) .. (6.8414,8.1290) .. controls (6.8791,8.0885) and (6.8541,7.9998) .. (6.8103,7.9659) .. controls (5.0401,6.5957) and (0.6494,3.3122) .. (0.6494,3.3122);
end{tikzpicture}
end{document}
edited May 28 at 11:43
answered May 28 at 11:38
ianian
2868 bronze badges
2868 bronze badges
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%2f493025%2fcolor-shading-a-wind-turbine-blade-in-tikz%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
Please show the code you used to draw the blade
– Someone
May 28 at 11:20
This is just a picture, i could draw the blade but i am looking for a method to avoid drawing it line for line
– Nicklas Koldkjær
May 28 at 11:28