تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > utils > اللون > hexToRgb
الدالة utils.colour.hexToRgb()
لتحويل اللون إلى نموذج أحمر أخضر أزرق.
Signature:
export declare function hexToRgb(colour: string): number[];
المعلمات
المعلمة |
النوع |
الوصف |
اللون |
سلسلة |
سلسلة تمثّل اللون بأي تنسيق لون (#ff0000 أو red أو 0xff000 أو غير ذلك) |
المرتجعات:
رقم[]
نموذج أحمر أخضر أزرق للون
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `utils.colour.hexToRgb()` function converts a color represented in any format (hex, name, etc.) to its RGB representation."],["It takes a single string argument representing the color and returns an array of three numbers representing the red, green, and blue values."]]],["The `hexToRgb` function, part of the `utils.colour` namespace, converts a color string into its RGB representation. It accepts a single parameter, `colour`, which is a string that can represent a color in various formats like '#ff0000', 'red', or '0xff000'. The function then returns an array of numbers, representing the RGB values of the provided color.\n"]]