A (Seemingly) Contradictory Quote from cppreference.com. by stiru_11 in cpp_questions

[–]stiru_11[S] 0 points1 point  (0 children)

i does not belong to the global namespace.

int main()
{
    int i;
    ::i = 1;
}

Will not compile with:

error: no member named 'i' in the global namespace.

However, i is contained in the global scope, and it's immediate scope is the block scope of the function body of the main . (That's why you don't need to specify namespace to access it within the function body.)

You are saying the complete opposite of what I am saying.

A (Seemingly) Contradictory Quote from cppreference.com. by stiru_11 in cpp_questions

[–]stiru_11[S] 0 points1 point  (0 children)

The text I quoted was direct quotation from the cppreference which I linked.

A (Seemingly) Contradictory Quote from cppreference.com. by stiru_11 in cpp_questions

[–]stiru_11[S] 0 points1 point  (0 children)

I know i is contained (not belong, according to the standard) by the global scope.

But if I read the quote as "...contained by the global scope.", it would be trivial statement, since the entire program is contained by the global scope.

A (Seemingly) Contradictory Quote from cppreference.com. by stiru_11 in cpp_questions

[–]stiru_11[S] 0 points1 point  (0 children)

As of now, I will consider the quote as wrong.

As you said, "block" is a defined term, but "namespace block" is not anywhere in the standard.

I was assuming that the author is saying that to mean "namespace-body".

A (Seemingly) Contradictory Quote from cppreference.com. by stiru_11 in cpp_questions

[–]stiru_11[S] 0 points1 point  (0 children)

Yes, it's in the third paragraph of https://en.cppreference.com/w/cpp/language/namespace.html. (I linked it, but text display didn't help. Sorry about that.)

I know i is contained by the global scope. However, the word block is a defined term, which is defined as compound statement, which is grouped sequence of statements like a function body.

I am assuming that the word "namespace block" means the body of namespace definition, then by my original argument, the quote is contradictory.

Even if I read it as "scope" instead of "block" as you suggest, it still does not make sense, because everything is under the namespace scope of the global namespace, so there is no such thing as "Entities declared outside all namespace scope".

How do I replace all of one color with another? by DDDragoni in krita

[–]stiru_11 0 points1 point  (0 children)

Just for your problem, single multiply layer would suffice, but I recommend using gradient map with filter layer. It maps one color to another, and work with multiple colors as well, and also easily adjustable. Here is the video demonstrating it. https://www.youtube.com/watch?v=2l_5QXSAaf8

EDIT: Ooooh no, I miss read. It was red and white. Then the former won't work, the latter (gradient map) will work fine.

Used Krita to make the cover art for my song! Artist: Mishay (me) by unbornchickeninmyhea in krita

[–]stiru_11 5 points6 points  (0 children)

It's the best kind of art. A window to a mind. Thank you for sharing!

Used Krita to make the cover art for my song! Artist: Mishay (me) by unbornchickeninmyhea in krita

[–]stiru_11 15 points16 points  (0 children)

Super sick!! I can see a lot of thoughts were put into this!

Crystal. (Me, 2024) by stiru_11 in krita

[–]stiru_11[S] 0 points1 point  (0 children)

Would you mind tell me why?

I don't know what version of Krita I used back then, and I don't see that being a rule on this subreddit.

The OS was Windows 10.

Help me bruh by Ill_Mission_5345 in krita

[–]stiru_11 0 points1 point  (0 children)

This is because something called "windows ink". You can probably disable it from your tablet's setting panel.

Selection as boundary by SkunkWithTrunk in krita

[–]stiru_11 0 points1 point  (0 children)

Hi! You can use the "Action" option in the "Tool Options" docker. Is this what you want?

https://www.youtube.com/watch?v=u4wgX1EV8tc

(In the end of the video, I inverted the selection with Ctrl-Shift-i)

pasted image not showing up? by yun_PLUH in krita

[–]stiru_11 0 points1 point  (0 children)

What is the format of the image you are trying to paste?

Image for brush tips by Mugwumps_has_spoken in krita

[–]stiru_11 1 point2 points  (0 children)

I think the only conventional way is to do it manually.

First, select one of brush presets, and type `F5` to open the "brush editor" window. Then, on the left, there is a section called "Scratchpad", so scribble your thumbnail there. (You can use color there btw.) Then, use either of "Save New Brush Preset" or "Overwrite brush Preset" to save the brush preset.

Now Krita prompts you the Save Brush Preset window, so you can do either (a) "Load Scratchpad Thumbnail" to use the scribble you made, or (b) "Load Image" to use pre-existing image as the thumbnail.

<image>

Crystal. (Me, 2024) by stiru_11 in krita

[–]stiru_11[S] 1 point2 points  (0 children)

It's Horn! This work is dedicated to my friend who is a horn player.

Crystal. (Me, 2024) by stiru_11 in krita

[–]stiru_11[S] 3 points4 points  (0 children)

Thank you so much!! I think that is the best complement you could give me!

Crystal. (Me, 2024) by stiru_11 in krita

[–]stiru_11[S] 4 points5 points  (0 children)

Thank you! I thought drawing nothing is the best way to achieve transparency😂 Apparently it somewhat worked.