Skip to content

Commit df80e3e

Browse files
eslteacher902010coseeian
authored andcommitted
Fix: improve contrast for 'function' keyword (#D73A49)
1 parent fdda927 commit df80e3e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/Nav/styles.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,7 @@
287287
margin-top: 10px;
288288
}
289289

290+
/* Force 'function' keyword to have better contrast */
291+
code span[style*="#D73A49"] {
292+
color: #000 !important;
293+
}

src/content/tutorials/en/layered-rendering-with-framebuffers.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,11 @@ function draw() {
191191

192192
By default, `p5.Framebuffer`s are not drawn to the screen. The main canvas is the only thing shown at the end of `draw()`. To make the contents of a `p5.Framebuffer` visible, it has to be stamped upon the main canvas. This is typically done with a call to `image(yourFramebuffer, x, y, width, height)`. Similar to the main canvas, a `p5.Framebuffer` only gets cleared when you ask it to be cleared, so you can stamp it on the main canvas as many times as you want, like in the example below.
193193

194-
<AnnotatedCode lang="javascript" columns={true} code={({ begin, end }) =>
194+
<AnnotatedCode
195+
lang="javascript"
196+
columns={true}
197+
theme="light-plus"
198+
code={({ begin, end }) =>
195199
`${begin('header')}
196200
197201
${end('header')}

0 commit comments

Comments
 (0)