Skip to content

Commit ec5cae7

Browse files
eslteacher902010ksen0
authored andcommitted
Fix: improve contrast for 'function' keyword (#D73A49)
1 parent b394bf4 commit ec5cae7

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
@@ -289,3 +289,7 @@
289289
margin-top: 10px;
290290
}
291291

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

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)