সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্লকলি > ইউটিলস > রঙ > rgbToHex
utils.colour.rgbToHex() ফাংশন
একটি রঙকে RGB থেকে হেক্স উপস্থাপনায় রূপান্তর করে।
স্বাক্ষর:
export declare function rgbToHex(r: number, g: number, b: number): string;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
r | সংখ্যা | লাল রঙের পরিমাণ, 0 এবং 255 এর মধ্যে int। |
g | সংখ্যা | সবুজের পরিমাণ, 0 এবং 255 এর মধ্যে int। |
খ | সংখ্যা | নীলের পরিমাণ, 0 এবং 255 এর মধ্যে int। |
রিটার্ন:
স্ট্রিং
রঙের হেক্স উপস্থাপনা।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The `rgbToHex` function converts a color from RGB to its hexadecimal representation. It takes three numerical parameters: `r` (red), `g` (green), and `b` (blue), each representing the amount of their respective color components, ranging from 0 to 255. The function then returns a string representing the color in hexadecimal format. The function is found within the blockly.utils.colour namespace.\n"]]