Class RgbColor
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আরজিবি কালার লাল, সবুজ, নীল রঙের চ্যানেল দ্বারা সংজ্ঞায়িত একটি রঙ।
পদ্ধতি
পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
---|
as Hex String() | String | একটি CSS-শৈলী 7 অক্ষর হেক্সাডেসিমাল স্ট্রিং (#rrggbb) বা 9 অক্ষরের হেক্সাডেসিমাল স্ট্রিং (#aarrggbb) হিসাবে রঙ প্রদান করে। |
get Blue() | Integer | এই রঙের নীল চ্যানেল, 0 থেকে 255 পর্যন্ত একটি সংখ্যা হিসাবে। |
get Color Type() | Color Type | এই রঙের ধরন পান। |
get Green() | Integer | এই রঙের সবুজ চ্যানেল, 0 থেকে 255 পর্যন্ত একটি সংখ্যা হিসাবে। |
get Red() | Integer | এই রঙের লাল চ্যানেল, 0 থেকে 255 পর্যন্ত সংখ্যা হিসাবে। |
বিস্তারিত ডকুমেন্টেশন
as Hex String()
একটি CSS-শৈলী 7 অক্ষর হেক্সাডেসিমাল স্ট্রিং (#rrggbb) বা 9 অক্ষরের হেক্সাডেসিমাল স্ট্রিং (#aarrggbb) হিসাবে রঙ প্রদান করে।
প্রত্যাবর্তন
String
- রঙের হেক্স উপস্থাপনা।
get Blue()
এই রঙের নীল চ্যানেল, 0 থেকে 255 পর্যন্ত একটি সংখ্যা হিসাবে।
প্রত্যাবর্তন
Integer
- নীল চ্যানেলের মান।
get Color Type()
এই রঙের ধরন পান।
প্রত্যাবর্তন
Color Type
- রঙের ধরন।
get Green()
এই রঙের সবুজ চ্যানেল, 0 থেকে 255 পর্যন্ত একটি সংখ্যা হিসাবে।
প্রত্যাবর্তন
Integer
- সবুজ চ্যানেলের মান।
get Red()
এই রঙের লাল চ্যানেল, 0 থেকে 255 পর্যন্ত সংখ্যা হিসাবে।
প্রত্যাবর্তন
Integer
- লাল চ্যানেলের মান।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eRgbColor\u003c/code\u003e defines a color using red, green, and blue color channels.\u003c/p\u003e\n"],["\u003cp\u003eYou can get the individual red, green, and blue color channel values as integers ranging from 0 to 255.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003easHexString()\u003c/code\u003e method provides the color's hexadecimal representation, suitable for CSS use.\u003c/p\u003e\n"],["\u003cp\u003eIt is possible to determine the color type using the \u003ccode\u003egetColorType()\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# Class RgbColor\n\nRgbColor\n\nA color defined by red, green, blue color channels. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------|-----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [asHexString()](#asHexString()) | `String` | Returns the color as a CSS-style 7 character hexadecimal string (#rrggbb) or 9 character hexadecimal string (#aarrggbb). |\n| [getBlue()](#getBlue()) | `Integer` | The blue channel of this color, as a number from 0 to 255. |\n| [getColorType()](#getColorType()) | [ColorType](/apps-script/reference/base/color-type) | Get the type of this color. |\n| [getGreen()](#getGreen()) | `Integer` | The green channel of this color, as a number from 0 to 255. |\n| [getRed()](#getRed()) | `Integer` | The red channel of this color, as a number from 0 to 255. |\n\nDetailed documentation\n----------------------\n\n### `as``Hex``String()`\n\nReturns the color as a CSS-style 7 character hexadecimal string (#rrggbb) or 9 character\nhexadecimal string (#aarrggbb).\n\n#### Return\n\n\n`String` --- The hex representation of color.\n\n*** ** * ** ***\n\n### `get``Blue()`\n\nThe blue channel of this color, as a number from 0 to 255.\n\n#### Return\n\n\n`Integer` --- The value of blue channel.\n\n*** ** * ** ***\n\n### `get``Color``Type()`\n\nGet the type of this color.\n\n#### Return\n\n\n[ColorType](/apps-script/reference/base/color-type) --- The color type.\n\n*** ** * ** ***\n\n### `get``Green()`\n\nThe green channel of this color, as a number from 0 to 255.\n\n#### Return\n\n\n`Integer` --- The value of green channel.\n\n*** ** * ** ***\n\n### `get``Red()`\n\nThe red channel of this color, as a number from 0 to 255.\n\n#### Return\n\n\n`Integer` --- The value of red channel."]]