<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Set Color</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ui-draw-text-layout.construct.html">UI\Draw\Text\Layout::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-text-layout.setwidth.html">UI\Draw\Text\Layout::setWidth</a></div> <div class="up"><a href="class.ui-draw-text-layout.html">UI\Draw\Text\Layout</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ui-draw-text-layout.setcolor" class="refentry"> <div class="refnamediv"> <h1 class="refname">UI\Draw\Text\Layout::setColor</h1> <p class="verinfo">(PHP 7, UI 0.9.9)</p><p class="refpurpose"><span class="refname">UI\Draw\Text\Layout::setColor</span> — <span class="dc-title">Set Color</span></p> </div> <div class="refsect1 description" id="refsect1-ui-draw-text-layout.setcolor-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>UI\Draw\Text\Layout::setColor</strong></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Color">UI\Draw\Color</span></span> <code class="parameter">$color</code></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$start</code><span class="initializer"> = 0</span></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$end</code></span> ]] )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>UI\Draw\Text\Layout::setColor</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$start</code><span class="initializer"> = 0</span></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$end</code></span> ]] )</div> <p class="para rdfs-comment"> Shall set the Color for all of, or a range of the text in the Layout </p> </div> <div class="refsect1 parameters" id="refsect1-ui-draw-text-layout.setcolor-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">color</code></dt> <dd> <p class="para"> The color to use </p> </dd> <dt> <code class="parameter">start</code></dt> <dd> <p class="para"> The starting character </p> </dd> <dt> <code class="parameter">end</code></dt> <dd> <p class="para"> The ending character, by default the end of the string </p> </dd> </dl> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ui-draw-text-layout.construct.html">UI\Draw\Text\Layout::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-text-layout.setwidth.html">UI\Draw\Text\Layout::setWidth</a></div> <div class="up"><a href="class.ui-draw-text-layout.html">UI\Draw\Text\Layout</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>