1+ <!DOCTYPE html>
2+ <!--
3+ Copyright 2025 Google LLC
4+
5+ Licensed under the Apache License, Version 2.0 (the "License");
6+ you may not use this file except in compliance with the License.
7+ You may obtain a copy of the License at
8+
9+ http://www.apache.org/licenses/LICENSE-2.0
10+
11+ Unless required by applicable law or agreed to in writing, software
12+ distributed under the License is distributed on an "AS IS" BASIS,
13+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ See the License for the specific language governing permissions and
15+ limitations under the License.
16+ -->
17+
18+ < html class ="no-js ">
19+ < head >
20+ < meta name ="viewport " content ="width=device-width, initial-scale=1 " charset ="UTF-8 ">
21+ < title > Companion</ title >
22+ < link href ="../../../../images/logo-icon.svg " rel ="icon " type ="image/svg ">
23+ < script > var pathToRoot = "../../../../" ; </ script >
24+ < script > document . documentElement . classList . replace ( "no-js" , "js" ) ; </ script >
25+ < script > const storage = localStorage . getItem ( "dokka-dark-mode" )
26+ if ( storage == null ) {
27+ const osDarkSchemePreferred = window . matchMedia && window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches
28+ if ( osDarkSchemePreferred === true ) {
29+ document . getElementsByTagName ( "html" ) [ 0 ] . classList . add ( "theme-dark" )
30+ }
31+ } else {
32+ const savedDarkMode = JSON . parse ( storage )
33+ if ( savedDarkMode === true ) {
34+ document . getElementsByTagName ( "html" ) [ 0 ] . classList . add ( "theme-dark" )
35+ }
36+ }
37+ </ script >
38+ < script type ="text/javascript " src ="https://unpkg.com/kotlin-playground@1/dist/playground.min.js " async ="async "> </ script >
39+ < script type ="text/javascript " src ="../../../../scripts/sourceset_dependencies.js " async ="async "> </ script >
40+ < link href ="../../../../styles/style.css " rel ="Stylesheet ">
41+ < link href ="../../../../styles/main.css " rel ="Stylesheet ">
42+ < link href ="../../../../styles/prism.css " rel ="Stylesheet ">
43+ < link href ="../../../../styles/logo-styles.css " rel ="Stylesheet ">
44+ < link href ="../../../../styles/font-jb-sans-auto.css " rel ="Stylesheet ">
45+ < link href ="../../../../ui-kit/ui-kit.min.css " rel ="Stylesheet ">
46+ < script type ="text/javascript " src ="../../../../scripts/clipboard.js " async ="async "> </ script >
47+ < script type ="text/javascript " src ="../../../../scripts/navigation-loader.js " async ="async "> </ script >
48+ < script type ="text/javascript " src ="../../../../scripts/platform-content-handler.js " async ="async "> </ script >
49+ < script type ="text/javascript " src ="../../../../scripts/main.js " defer ="defer "> </ script >
50+ < script type ="text/javascript " src ="../../../../scripts/prism.js " async ="async "> </ script >
51+ < script type ="text/javascript " src ="../../../../ui-kit/ui-kit.min.js " defer ="defer "> </ script >
52+ < script type ="text/javascript " src ="../../../../scripts/symbol-parameters-wrapper_deferred.js " defer ="defer "> </ script >
53+ </ head >
54+ < body >
55+ < div class ="root ">
56+ < nav class ="navigation theme-dark " id ="navigation-wrapper ">
57+ < a class ="library-name--link " href ="../../../../index.html ">
58+ library
59+ </ a >
60+ < button class ="navigation-controls--btn navigation-controls--btn_toc ui-kit_mobile-only " id ="toc-toggle "
61+ type ="button "> Toggle table of contents
62+ </ button >
63+ < div class ="navigation-controls--break ui-kit_mobile-only "> </ div >
64+ < div class ="library-version " id ="library-version ">
65+ 3.16.0 </ div >
66+ < div class ="navigation-controls ">
67+ < div class ="filter-section filter-section_loading " id ="filter-section ">
68+ < button class ="platform-tag platform-selector jvm-like " data-active =""
69+ data-filter =":library:dokkaHtml/release "> androidJvm</ button >
70+ < div class ="dropdown filter-section--dropdown " data-role ="dropdown " id ="filter-section-dropdown ">
71+ < button class ="button button_dropdown filter-section--dropdown-toggle " role ="combobox "
72+ data-role ="dropdown-toggle "
73+ aria-controls ="platform-tags-listbox "
74+ aria-haspopup ="listbox "
75+ aria-expanded ="false "
76+ aria-label ="Toggle source sets "
77+ > </ button >
78+ < ul role ="listbox " id ="platform-tags-listbox " class ="dropdown--list " data-role ="dropdown-listbox ">
79+ < div class ="dropdown--header "> < span > Platform filter</ span >
80+ < button class ="button " data-role ="dropdown-toggle " aria-label ="Close platform filter ">
81+ < i class ="ui-kit-icon ui-kit-icon_cross "> </ i >
82+ </ button >
83+ </ div >
84+ < li role ="option " class ="dropdown--option platform-selector-option jvm-like " tabindex ="0 ">
85+ < label class ="checkbox ">
86+ < input type ="checkbox " class ="checkbox--input " id =":library:dokkaHtml/release "
87+ data-filter =":library:dokkaHtml/release "/>
88+ < span class ="checkbox--icon "> </ span >
89+ androidJvm
90+ </ label >
91+ </ li >
92+ </ ul >
93+ < div class ="dropdown--overlay "> </ div >
94+ </ div >
95+ </ div >
96+ < button class ="navigation-controls--btn navigation-controls--btn_theme " id ="theme-toggle-button "
97+ type ="button "> Switch theme
98+ </ button >
99+ < div class ="navigation-controls--btn navigation-controls--btn_search " id ="searchBar " role ="button "> Search in
100+ API
101+ </ div >
102+ </ div >
103+ </ nav >
104+ < div id ="container ">
105+ < div class ="sidebar " id ="leftColumn ">
106+ < div class ="dropdown theme-dark_mobile " data-role ="dropdown " id ="toc-dropdown ">
107+ < ul role ="listbox " id ="toc-listbox " class ="dropdown--list dropdown--list_toc-list "
108+ data-role ="dropdown-listbox ">
109+ < div class ="dropdown--header ">
110+ < span >
111+ library
112+ </ span >
113+ < button class ="button " data-role ="dropdown-toggle " aria-label ="Close table of contents ">
114+ < i class ="ui-kit-icon ui-kit-icon_cross "> </ i >
115+ </ button >
116+ </ div >
117+ < div class ="sidebar--inner " id ="sideMenu "> </ div >
118+ </ ul >
119+ < div class ="dropdown--overlay "> </ div >
120+ </ div >
121+ </ div >
122+ < div id ="main ">
123+ < div class ="main-content " data-page-type ="classlike " id ="content " pageIds ="library::com.google.maps.android.heatmaps/Gradient.Companion///PointingToDeclaration//-1887420133 ">
124+ < div class ="breadcrumbs "> < a href ="../../../../index.html "> library</ a > < span class ="delimiter "> /</ span > < a href ="../../index.html "> com.google.maps.android.heatmaps</ a > < span class ="delimiter "> /</ span > < a href ="../index.html "> Gradient</ a > < span class ="delimiter "> /</ span > < span class ="current "> Companion</ span > </ div >
125+ < div class ="cover ">
126+ < h1 class ="cover "> < span > < span > Companion</ span > </ span > </ h1 >
127+ < div class ="platform-hinted " data-platform-hinted ="data-platform-hinted "> < div class ="content sourceset-dependent-content " data-active ="" data-togglable =":library:dokkaHtml/release "> < div class ="symbol monospace "> < span class ="token keyword "> object </ span > < a href ="index.html "> Companion</ a > </ div > </ div > </ div >
128+ </ div >
129+ < div class ="tabbedcontent ">
130+ < div class ="tabs-section " tabs-section ="tabs-section "> < button class ="section-tab " data-active ="" data-togglable ="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION "> Members</ button > </ div >
131+ < div class ="tabs-section-body ">
132+ < div data-togglable ="FUNCTION ">
133+ < h2 class =""> Functions</ h2 >
134+ < div class ="table "> < a data-name ="236478181%2FFunctions%2F-1887420133 " anchor-label ="interpolateColor " id ="236478181%2FFunctions%2F-1887420133 " data-filterable-set =":library:dokkaHtml/release "> </ a >
135+ < div class ="table-row " data-filterable-current =":library:dokkaHtml/release " data-filterable-set =":library:dokkaHtml/release ">
136+ < div class ="main-subrow keyValue ">
137+ < div class =""> < span class ="inline-flex ">
138+ < div > < a href ="interpolate-color.html "> < span > interpolate</ span > < wbr > </ wbr > < span > < span > Color</ span > </ span > </ a > </ div >
139+ < span class ="anchor-wrapper "> < span class ="anchor-icon " pointing-to ="236478181%2FFunctions%2F-1887420133 "> </ span >
140+ < div class ="copy-popup-wrapper "> < span class ="copy-popup-icon "> </ span > < span > Link copied to clipboard</ span > </ div >
141+ </ span > </ span > </ div >
142+ < div >
143+ < div class ="title ">
144+ < div class ="platform-hinted " data-platform-hinted ="data-platform-hinted "> < div class ="content sourceset-dependent-content " data-active ="" data-togglable =":library:dokkaHtml/release "> < div class ="symbol monospace "> < div class ="block "> < div class ="block "> < span class ="token annotation builtin "> @</ span > < a href ="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html "> < span class ="token annotation builtin "> JvmStatic</ span > </ a > </ div > </ div > < span class ="token keyword "> fun </ span > < a href ="interpolate-color.html "> < span class ="token function "> interpolateColor</ span > </ a > < span class ="token punctuation "> (</ span > < span class ="parameters "> < span class ="parameter "> color1< span class ="token operator "> : </ span > < a href ="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html "> Int</ a > < span class ="token punctuation "> , </ span > </ span > < span class ="parameter "> color2< span class ="token operator "> : </ span > < a href ="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html "> Int</ a > < span class ="token punctuation "> , </ span > </ span > < span class ="parameter "> ratio< span class ="token operator "> : </ span > < a href ="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html "> Float</ a > </ span > </ span > < span class ="token punctuation "> )</ span > < span class ="token operator "> : </ span > < a href ="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html "> Int</ a > </ div > < div class ="brief "> < p class ="paragraph "> Helper function for creation of color map. Interpolates between two given colors using their HSV values.</ p > </ div > </ div > </ div >
145+ </ div >
146+ </ div >
147+ </ div >
148+ </ div >
149+ </ div >
150+ </ div >
151+ </ div >
152+ </ div >
153+ </ div >
154+ < div class ="footer ">
155+ < a href ="#content " id ="go-to-top-link " class ="footer--button footer--button_go-to-top "> </ a >
156+ < span > © 2025 Copyright</ span >
157+ < span class ="pull-right ">
158+ < span > Generated by </ span >
159+ < a class ="footer--link footer--link_external " href ="https://github.com/Kotlin/dokka ">
160+ < span > dokka</ span >
161+ </ a >
162+ </ span >
163+ </ div >
164+ </ div >
165+ </ div >
166+ </ div >
167+ </ body >
168+ </ html >
0 commit comments