Quantcast
Channel: Filling a percentage of a regular polygon - TeX - LaTeX Stack Exchange
Browsing all 5 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by JLDiaz for Filling a percentage of a regular polygon

I'm late (question already answered), but I was working in a different approach which perhaps can be useful in other scenarios (for this one, Tom's answer is simpler and better).My approach is to...

View Article



Image may be NSFW.
Clik here to view.

Answer by Ignasi for Filling a percentage of a regular polygon

And another one using regular polygons and pics.\documentclass[tikz,border=2mm]{standalone}\usetikzlibrary{shapes.geometric}\begin{document}\tikzset{ pics/polygon/.style n args = {3}{ code = {...

View Article

Image may be NSFW.
Clik here to view.

Answer by yori for Filling a percentage of a regular polygon

Another version, which allows you to specify the colors separately:\documentclass{standalone}\usepackage{tikz}\newcommand\polygon[2][]{ % Count input length. \pgfmathsetmacro{\n}{0} \foreach \color in...

View Article

Image may be NSFW.
Clik here to view.

Answer by Tom Bombadil for Filling a percentage of a regular polygon

Just add a few more parameters for fill colors and which tiles to fill:Code\documentclass[tikz, border=2mm]{standalone}\newcommand\polygon[5][]%% 1: options for scope% 2: num corners% 3: size% 4:...

View Article

Filling a percentage of a regular polygon

I want to fill a polygon with a color. First of all the n-polygon should be divided in n equal parts. I've found a question similar to this:Drawing polygonsAnd the solution of @Yori was almost wat I...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images