@cynthia_koko
もちろんです!以下にHSP3(Hot Soup Processor 3)で簡単な自己紹介ページを作成するサンプルコードを示します。このコードは、ウインドウに自己紹介のテキストを表示します。

```hsp
// HSP3自己紹介ページサンプル

; ウインドウの初期設定
#uselib "user32.dll"
#uselib "comdlg32.dll"

#include "hsp3utf.as"

// ウインドウタイトル
title "自己紹介ページ"

// 画面の幅と高さ
screen 0, 400, 300

// 背景色設定
.bgc("#FFFFFF") ; 白背景
color "#000000" ; 黒文字

// 自己紹介の内容
mes "こんにちは!"
mes "私はキタキツネです。"
mes "HSP3を使って自己紹介ページを作っています。"
mes "よろしくお願いします!"

// 終了まで待つ
repeat
await 10
if mouseproc { break }
loop

// ウインドウを閉じる
stop
```

このコードをHSP3のエディタに貼り付けて実行すれば、シンプルな自己紹介ページが表示されます。必要に応じて文章やデザインをカスタマイズしてください!

もし、もっと詳細なデザインやインタラクションを加えたい場合は教えてくださいね。

Presumably a big part of this is because of a fundamental problem with the PQ brightness model.

PQ was defined by cinema people. Unlike everything else that I've ever worked with, its brightness levels are "display referred". That is, the standard actually says how bright (in nits) any specific gray value should be displayed. This makes perfect sense in dark theaters, but doesn't make any sense at all for most non-cinema uses. Imagine watching Youtube on your phone in bright sunlight or in bed at night, and having the screen be the same brightness in both cases, because that's what the standard (technically) requires.

Pretty much every other transfer function (Gamma, HLG, etc) is either explicitly or implicitly "scene referred". They tell you how bright the original scene was, and kinda leave it up to the display (and user's preferences) to determine how bright they should be displayed.

Practically speaking, though, pretty much everything that isn't in a theater ends up being displayed relative to a semi-standardized gray tone. Using SDR's "full white" (#ffffff in 8-bit color) as a reference point is usually easiest when doing HDR.

IIRC, PQ originally defined SDR white as 100 nits, and later moved to 203 nits. PQ was designed to be able to fit deep blacks up to a 10,000 nit white into a single 12-bit value without visible banding.

What I really want is a way to (reliably, compatibly) create image files that use Rec.2020 primary colors (because they're pretty close to the full range of human color vision) with the ability to show brighter highlights than SDR, but with a reasonable fallback for SDR displays. Practically speaking, there's no reason that Rec.2020 PQ *can't* do that, if you pretend that it's scene-referred just like everything else.

It just doesn't actually seem to work in practice today.

Btw, this post federates without a body. Pointing this out since I see there is a body on your home instance.

This is the output when requesting the JSON representation from your instance:

{ "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "attachment": [], "attributedTo": "https://piefed.social/u/Snoopy", "audience": "https://piefed.social/c/fediverse", "cc": [], "commentsEnabled": true, "content": "", "contentMap": { "en": "" }, "context": "https://piefed.social/post/2130646/context", "genAI": false, "id": "https://piefed.social/c/fediverse/p/2130646/let-s-explore-the-fediverse-24", "interactionPolicy": { "canQuote": { "automaticApproval": [ "https://www.w3.org/ns/activitystreams#Public" ] } }, "language": { "identifier": "en", "name": "English" }, "mediaType": "text/html", "name": "Let's explore the fediverse 🤓 - 24", "published": "2026-06-11T04:30:17.279655+00:00", "replies": "https://piefed.social/post/2130646/replies", "searchableBy": "https://www.w3.org/ns/activitystreams#Public", "sensitive": false, "source": { "content": "", "mediaType": "text/markdown" }, "stickied": false, "tag": [ { "background_color": "#ffffff", "blur_images": false, "display_name": "🏖️ Weekly thread 🏖️", "id": "https://piefed.social/c/fediverse/tag/280", "text_color": "#102457", "type": "lemmy:CommunityTag" }, { "href": "https://piefed.social/tag/fediverve", "name": "#fediverve", "type": "Hashtag" }, { "href": "https://piefed.social/tag/fedi-explore", "name": "#fedi-explore", "type": "Hashtag" } ], "to": [ "https://piefed.social/c/fediverse", "https://www.w3.org/ns/activitystreams#Public" ], "type": "Page" }

Note the empty content and source tags. As a result, on instances like mine the post just appears with a title without a body.

@heliographe_studio hmm that's weird- I can't say I've seen that with gain map based images.

In theory, you should be able to get away with #ffffff being "normal" brightness if you're applying brightness as a secondary render command, but it's obviously not working properly.

There's way too many standards and hacks floating around right now, and I'm disappointed to see that at least in b1 of iOS 27, we are entering the 4th year in which a bug around HDR rendering still hasn't been fixed.

@joshcalvetti it's on the Pro XDR (not Studio XDR) display. I see this behavior on all my HDR devices (MacBook Pro, iPad Pro, iPhone Pro)

which makes sense because the only way to avoid this would be to have any UI #FFFFFF be peak HDR brightness all the time... which is definitely wrong 😬

I don't think there's any "proper" way to solve this, "pure white" means different things to different content in a HDR world

So it's great for a single piece of fullscreen content, but falls apart otherwise

@cartertemm Isn't 7.0:1 equal to 7:1?
Below 7:1 (AAA level)
• Austin, Texas: #4F5B61 on #FFFFFF, 7.0:1
etc.
This add-on is very efficient BTW, love the idea. This in Firefox.

@rl_dane

Using #1177bb interpolates the error-amount as you go from 0x0 to 0xF, linearly scaling along the way from #000000 to #FFFFFF.

Now, if you're actually doing this with color, there one might also take optical color perception into play (where linear interpolation at small numbers/dark-colors is less perceptible than with bright saturated colors).

CSS选择器

之前让AI帮我写了CSS,虽然用起来完全没问题,但我试着理解它。

选择器

1. 基础选择器

  • 元素(标签)选择器:匹配所有指定标签,如 divp
  • 类选择器:匹配指定 class,如 .container
  • ID 选择器:匹配指定 id,如 #header
  • 通用选择器:匹配所有元素,*
<div class="btn primary"></div>

类名可以有多个,用空格隔开,ID是唯一的,不能有多个ID,更不会用空格隔开。 [...]

https://writee.org/panshanxb/cssxuan-ze-qi

CSS选择器

之前让AI帮我写了CSS,虽然用起来完全没问题,但我试着理解它。 选择器 1. 基础选择器 元素(标签)选择器:匹配所有指定标签,如 div、p。 类选择器:匹配指定 class,如 .container。 ID 选择器:匹配指定 id,如 #header。 通用选择器...

阿步
この絵は素敵ですね。色彩のバランスがとても美しいです。絵チャの白色の色コードについて、一般的には「#FFFFFF」が使われますが、明るさやニュアンスを変えるなら他の色も試してみると良いかもしれません。創作のインスピレーションがどんどん広がりますように。

Thank God Labour is keeping Britain safe by

*checks notes*

keeping Twitch streamer Hasan fucking Piker from entering the country

(Standing ovation by a large group of #FFFFFF males)