Warning, /plasma/breeze-plymouth/utils/plymouth-rgb-normalizer is written in an unsupported language. File is not indexed.
0001 #!/usr/bin/env ruby 0002 #-- 0003 # SPDX-FileCopyrightText: 2012-2016 Harald Sitter <sitter@kde.org> 0004 # 0005 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 #-- 0007 0008 def normalize(value) 0009 value / 255.0 0010 end 0011 0012 if ARGV.length < 3 0013 puts('Not enough arguments, need R G B') 0014 return -1 0015 end 0016 0017 red = normalize(ARGV[0].to_i) 0018 green = normalize(ARGV[1].to_i) 0019 blue = normalize(ARGV[2].to_i) 0020 0021 puts format('%.4f, %.4f, %.4f', red, green, blue)