Input Data with Color Cell

How to Input data with color cell in spreadsheet by app mit app inventor use google script

https://developers.google.com/apps-script/reference/spreadsheet/range#setbackgroundcolor