<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>na_ah</author_name>
  <author_url>https://blog.hatena.ne.jp/na_ah/</author_url>
  <blog_title>na_ahのブログ</blog_title>
  <blog_url>https://na-ah.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>こんにちは！ 今回はRubyでコンソールアプリを作る時に便利なコマンド 第四回です。 何をしたいか RGBで文字色を指定する コード def rgb(red, green, blue) &quot;\033[38;2;#{red};#{green};#{blue}m&quot; end red, green, blueに0~255の数値を指定 後ろに文字を続けると文字色を変更できる おわりに 今回は文字色のバリエーションを増やす方法についてまとめました。RGBで指定できるので様々な色が作れますね。 23/100</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fna-ah.hatenablog.com%2Fentry%2F2023%2F12%2F29%2F235758&quot; title=&quot;Rubyでコンソールアプリを作る時に便利なコマンド 第四回 - na_ahのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-29 23:57:58</published>
  <title>Rubyでコンソールアプリを作る時に便利なコマンド 第四回</title>
  <type>rich</type>
  <url>https://na-ah.hatenablog.com/entry/2023/12/29/235758</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
